
@media (min-width: 1261px) {
  .wc-apf-file-upload .table-holder-preview {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    gap: 30px;
  }

}

@media (max-width: 1260px) {
  .wc-apf-file-upload .table-holder-preview {
    display: flex;
    flex-wrap: wrap !important;
    gap: 10px;

    flex-direction: column !important;

  }

}


@media (min-width: 768px) {
  
  .inner-hold {
    max-width: 85%;
  }
  .fileupload_hero {
    min-width: 400px;
  }
}
@media (max-width: 767px) {
  .wc-apf-dimensions-wrapper{
    padding: 0px 0px !important;
    margin-top: 0px !important;
  }
  
  .inner-hold {
    max-width: 83%;
  }
  .fileupload_hero {
    min-width: 300px;
  }
  .wc-apf-dimension-control label{
    padding: 0px 0px 10px 0px !important
  }
}
.table-holder-preview table#price_calculator input {
  width: 100% !important;
  max-width: none !important;
  min-width: none !important;
}
table#price_calculator .minus-btn,
table#price_calculator .plus-btn {
  padding: 5px 5px !important;
}
#price_calculator > tbody tr.width-input td:nth-child(2) {
  justify-content: space-between !important;
}
.fileupload_preview {
  display: none;
  align-content: center;
  justify-content: center;
  position: relative;
  width: fit-content;
  margin-bottom: 10px;
}

.verticle_direction {
  min-width: 30px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
  margin-top: 65px;
  margin-bottom: 0px;
  margin-right: 10px;
  border: 1px solid #fff;
  border-top-color: #000;
  border-bottom-color: #000;
}
.verticle_direction:after {
  content: "";
  background: #000;
  width: 1px;
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 50%;
  display: block;
}
.horizontal_direction {
  min-height: 30px;
  position: relative;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid #fff;
  border-left-color: #000;
  border-right-color: #000;
}
.horizontal_direction:after {
  content: "";
  height: 1px;
  background: #000;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: block;
}
.easyzoom.zoom-box {
  background: #f2f2f2
    url(https://uploadtransfers.com/wp-content/uploads/2024/12/Screenshot-2024-12-11-at-17.15.48.png)
    center center;
  position: relative;
  background-size: 2%;
}

.upload_tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: absolute;
  width: 100%;
  left: 0;
  padding: 10px;
  top: 0;
  z-index: 9999;
  right: 4px;
}
a#fileremove-2 {
  padding: 5px;
  border-radius: 8px;
  background: #0006;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
span.horizontal_direction_text {
  z-index: 1;
  background: #fff;
  padding: 0px 20px !important;
}
span.verticle_direction_text {
  z-index: 1;
  background: #fff;
  padding: 20px 0px !important;
  height: fit-content;
}
.price-table-row.calculated-price .product_price span.amount {
  background: #28a4d9;
  color: #fff;
  border-radius: 5px;
  border: 0px;

  padding: 13px 5px;
  font-weight: 700;
  width: -webkit-fill-available;
}

.price-table-row.calculated-price .product_price {
  width: -webkit-fill-available;
}

#price_calculator > tbody tr:nth-child(1) {
  order: 2;
  width: 36% !important;
}
#price_calculator > tbody tr:nth-child(2) {
  order: 1;
  width: 36% !important;
}
#price_calculator > tbody tr:nth-child(3) {
  order: 3;
  width: 24% !important;
}

.table-holder-preview #price_calculator > tbody tr.calculated-price > td:nth-child(1) {
  text-align: center !important;
}

.table-holder-preview table#price_calculator > tbody .width-input td:nth-child(1) {
  text-align: center !important;
}

.table-holder-preview table#price_calculator > tbody .length-input td:nth-child(1) {
  justify-content: space-evenly !important;
}
/* .remover-background{
  display: block !important
}

.remover-background button{
  background: #000000;
  color: #fff;
  border-radius: 5px;
  border: 0px;
  padding: 13px;
  font-weight: 700;
} */

.table-holder-preview table#price_calculator thead td div.infomsg {
  /* display: block !important; */
  display: none !important;
  color: white !important;
  padding: 10px !important;
  justify-content: center;
  text-align: center;
  background: #007bb0 !important;
  border: 1px solid #000000 !important;
  border-radius: 6px !important;
  box-shadow: 0px 0px 6px #28a4d9 !important;
  font-weight: bold;
  font-size: 13px;
}

.loadinga {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #FFF #FFF transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loadinga::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent #008bff #00a4ff;  
  width: 40px;
  height: 40px;
  border-radius: 50%;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}

/* .text-image-spinner .loadinga::after {
  
  border-color: transparent #fff #fff !important;  
  
} */

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
    
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
    


@media (min-width: 768px) {
 

  .global-cont{
    position: sticky !important;
    top: 15px;
    z-index: 100;
    height: fit-content; 
    width:48%;
  }

  .inner-global-cont{
    padding: 20px; 
    background:#f2f2f2; 
    max-height: fit-content; 
    margin-bottom: 20px; 
    max-width: 90%;
    border: 1px solid #cbcbcb !important;
    box-shadow: 0px 1px 5px 1px #000000 !important;
    border-radius: 6px; 
    position:relative
  }

}

@media (max-width: 767px) {
 
 .inner-global-cont{
  padding: 5px 5px;
  background: #f2f2f2;
  max-height: fit-content;
  margin-bottom: 20px;
  /* max-width: 90%; */
  border: 1px solid #cbcbcb !important;
  box-shadow: 0px 1px 5px 1px #000000 !important;
  border-radius: 6px;
  position: relative;
 }


}

.measure-text {
  margin: auto;
  font-size: clamp(9px, 1.2vw, 17px);
  background: #f2f2f2;
  white-space: nowrap;
}
@media (min-width: 530px) {
 
  .global-cont{
    min-width: 500px;
  }
 }

 @media (max-width: 529px) {
  .global-cont{
    min-width: 100%;
  }
 }


.container-color-image {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 90%;
  margin: 30px auto;
  height: fit-content;
  align-items: center;
  align-content: stretch;
}
  .child-color-image {
    flex: 0 0 calc(33.333% - 0px);
    height: calc(50% - 10px);
    position: relative;
    text-align: center;
    box-sizing: border-box;
    /* border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 10px; */
  }
  .design-area-color-image {
    position: absolute;
    overflow: hidden;
    border: 1px dashed #747474;
  }
  .design-area-color-image img {
    display: block; /* Ensure proper layout */
    margin: 0 auto; /* Center the image */
  }
  .child-color-image img {
    width: 100%;
    height: auto;
   
  }
  /* .uploaded-design{
    mix-blend-mode: multiply;
    object-fit: cover;
    border: 1px dashed #747474;
  } */


  .product-variant__container--radio {
    margin-top: 40px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 90%;
  }
  .product-variant__item--radio input {
    position: absolute !important;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
  }
  .product-variant__item--color label {
    min-width: 0;
    width: 36px;
    height: 36px;
    border-radius: 100%;
    padding: 0;
    position: relative;
    pointer-events: none;
    border-color: transparent;
    margin-top: 0.0625rem;
    transform: translate(0.0625rem);
    pointer-events: auto;
    cursor: pointer;
  }
  .product-variant__item--radio label {
    text-align: center;
    display: inline-block;

    color: var(--color-text-main);
    padding: var(--input-padding) calc(var(--input-padding) * 0.9);
    transition: all 0.1s linear;
    line-height: 1;
    width: max-content;
    min-width: 2.5rem;
    cursor: pointer;
  }
  .product-variant__item--radio {
    position: relative;
    display: inline-block;
    margin: 0 0.6875rem 0 0;
  }
  .product-variant__item--color {
    margin-inline-end: 0.5rem;
  }
  .tooltipotext {
    visibility: hidden;
    background-color: #fff;
    box-shadow: 0 0 3px #333;
    text-align: center;
    border-radius: 6px;
    min-width: 220px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    font-weight: 400;
    line-height: 120%;
    transform: translate(-50%);
    font-size: 12px;
    padding: 10px;
  }
  .product-variant__item--color .product-variant__item-swatch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

  }
  .product-variant__item--color .product-variant__item-swatch {
    border-radius: 100%;
  }
  .product-variant__item--color label span {
    box-shadow: inset 0 0 0 1px #0003;
  }
  .product-variant__item--color label span:hover {
    box-shadow: 0px 0px 1px 1.5px #000;
    border: 1px solid #ffffff;
}
  .product-variant__item input:checked + label span{
    box-shadow: 0px 0px 1px 1.5px #000;
    border: 1px solid #ffffff;
  }
  .product-variant__item input[type="color"]:checked + label{
    border: 2px solid black; /* Border for color input when selected */
  }
  .checked-color {
    border: 1px solid #000;
    box-shadow: 0px 0px 1px 1px #000;
}

.red-tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    max-width: 100%;
}

.red-tooltip-box {
    visibility: hidden;
    min-width: 300px; /* Prevents shrinking too much */
    max-width: 450px; /* Ensures it doesn't get too wide */
    width: auto;
    background-color: black;
    color: #fff;
    text-align: left;
    padding: 12px;
    border-radius: 8px;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 16px;
    z-index: 100;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}
.red-tooltip-visible {
    visibility: visible !important;
    opacity: 1 !important;
}
.red-tooltip-container:hover .red-tooltip-box {
    visibility: visible;
    opacity: 1;
}

@media screen and (max-width: 600px) {
    .red-tooltip-box {
        max-width: 95%;
        font-size: 15px;
        padding: 10px;
        line-height: 1.7;
        transform: translateX(-80%);
    }

  
}
.gradient-button {
    transition: background 0.3s ease-in-out;
}
.gradient-button::after {
    content: '' !important;
}
.gradient-button:hover {
    background: linear-gradient(315deg, #f06, #1b00ff) !important;
}
.wc-apf-file-price {
    background: #28a4d9;
    color: #fff !important;
    border-radius: 5px;
    border: 0px;
    padding: 13px 5px;
    font-weight: 700;
    width: -webkit-fill-available;
}
.wc-apf-dimension-price label{
  margin-bottom: 0px !important;
}

/* Chrome, Safari, Edge, Opera */
input.wc-apf-design-qty[type="number"]::-webkit-inner-spin-button,
input.wc-apf-design-qty[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input.wc-apf-design-qty[type="number"] {
    -moz-appearance: textfield;
}

.aitools{
  height: fit-content !important;
      width: -webkit-fill-available !important;
}

#uploadprogress {
    margin-top: 15px;
    display: none;
}

#uploadprogress .wc-apf-upload-progress {
    margin: 0;
}


/* Previous Files Section inside AI Container */
.ai-container .wc-apf-previous-files-section {
    padding-top: 20px;
    margin-top: 20px;
}

.ai-container .wc-apf-previous-files-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.ai-container .wc-apf-previous-files-section .description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 13px;
}

.wc-apf-previous-files-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow: hidden;
    padding: 10px 0;
    margin-top: 15px;
}

.wc-apf-previous-file-card {
    flex: 0 0 150px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wc-apf-previous-file-card:hover {
    border-color: #2ea2cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.wc-apf-previous-file-preview {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 1px;
    overflow: hidden;
}

.wc-apf-previous-file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.wc-apf-previous-file-preview .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #999;
}

.wc-apf-previous-file-info {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.wc-apf-previous-file-info .file-name {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-word;
    line-height: 1.3;
}

.wc-apf-previous-file-info .file-meta small {
    color: #999;
    font-size: 11px;
}

.wc-apf-add-previous-file {
    width: 100%;
    padding: 6px 12px;
    background: #2ea2cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 13px;
}

.wc-apf-add-previous-file:hover {
    background: #1e8cbe;
    color: #fff;
}

.wc-apf-previous-file-card.added {
    border-color: #eee;
}

.wc-apf-previous-file-card.added .wc-apf-add-previous-file {
    background: #46b450;
    cursor: default;
}
.wc-apf-add-previous-file.button{
  width: 100% !important;
}
/* Scrollbar styling for horizontal scroll */
.wc-apf-previous-files-grid::-webkit-scrollbar {
    height: 8px;
}

.wc-apf-previous-files-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wc-apf-previous-files-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.wc-apf-previous-files-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .wc-apf-previous-file-card {
        flex: 0 0 120px;
    }
    
    .wc-apf-previous-files-grid {
        gap: 10px;
    }
}