/**
* 2023 Anvanto
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
*
*  @author    Anvanto <anvantoco@gmail.com>
*  @copyright 2023 Anvanto
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*/
.an-pf-hide {
  display: none;
}

.an-pf-original-prices {
  display: none;
}
.an-pf-field-label-title {
  margin-right: 4px;
}
.an-pf-tooltip {
  display: flex;
  align-items: center;
  margin-left: 7px;
  margin-top: -2px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* Tooltip text */
.an-pf-tooltip svg {
  width: 18px;
  height: 18px;
}
.an-pf-tooltip .an-pf-tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
}

.an-pf-tooltip:hover .an-pf-tooltiptext {
  visibility: visible;
}

.anpf-field-counter-text {
  display: none;
}
.an-pf-field-type-text-wrap,
.an-pf-field-type-textarea-wrap {
  position: relative;
}
.an-pf-field-type-text-wrap .anpf-field-counter-max_length {
  margin-bottom: 0;
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 2px;
  font-size: 12px;
  line-height: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7px 0 5px;
}
.an-pf-field-type-textarea-wrap .anpf-field-counter-max_length {
  margin-bottom: 0;
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 12px;
  line-height: 18px;
  background: #fff;
  padding: 4px 6px 3px 5px;
}
.an-pf-fields-title {
  margin-bottom: 2rem;
}
.an-pf-fieldminiature_right {
  margin-left: 10px;
}
.an-pf-field-image-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
}
.an-pf-field-image {
  max-width: 30px;
  max-height: 30px;
}
.anfield-checkbox,
.anfield-radio {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.anfield-checkbox:last-child,
.anfield-radio:last-child {
  margin-bottom: 0;
}
.anfield-checkbox input,
.anfield-radio input {
  margin-right: 10px;
}
.anfield-checkbox label,
.anfield-radio label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0;
}
.an-pf-field-type-number .form-control,
.an-pf-field-type-text .form-control {
  margin-bottom: 10px;
}
.an-pf-field-descr {
  color: #7a7a7a;
  margin-top: 10px;
}

.an-pf-fields-total {
  font-weight: bold;
  padding-top: 20px;
  margin-bottom: 20px;
  border-top: 1px solid #dcdcdc;
}

.an-pf-field .control-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.an-pf-fields-cart-line .value,
.an-pf-fields-cart-line .label {
  font-size: 12px;
}

.an-pf-fields-wrap {
  padding: 10px 0px;
}

.an-pf-field select {
  background-color: #fff;
}
.an-pf-field-type-date input,
.an-pf-field-type-textarea textarea,
.an-pf-field-type-text input,
.an-pf-field-type-number input {
  background: #fff;
}

.an-pf-field-red {
  color: red;
}

.elementor-section-wrap .an-pf-fields-wrap {
  padding: 10px;
}
.elementor-section-wrap .elementor-element .an-pf-fields-wrap {
  padding: 0;
  width: 100%;
}
.an-pf-hide {
  margin: 0!important;
  padding: 0!important;
}



.anfield-hidden-input {
  display: none;
}
.anfield-slider-block {
  display: flex;
  flex-direction: column;
}
.anfield-slider-head {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  order: 2;
}
.anfield-slider {
  width: calc(100% - 20px);
  margin: 8px auto;
  cursor: pointer;
  border: 0;
  background: transparent;
  height: 8px;
  position: relative;
}
.anfield-slider:before {
  display: block;
  content: "";
  position: absolute;
  top: 2px;
  right: -10px;
  bottom: 2px;
  left: -10px;
  background: #c5c5c5;
  border-radius: 4px;
  height: 4px;
}
.anfield-slider.ui-state-default,
.anfield-slider.ui-widget-content .ui-state-default {
  cursor: pointer;
  width: 20px;
  height: 20px;
  background: #c5c5c5;
  border-radius: 50%;
  border: 0!important;
  top: -6px;
  outline: none!important;
}
#ui-datepicker-div {
    z-index: 3!important;
}
.anfield-json {
  display: none;
}

.anfield-video {
  max-width: 100%;
  width: 100%;
  min-height: 255px;
}
.modal-default-image {
  display: none;
}

.youtube-video iframe {
  max-width: 100%;
}
.anpf-field-counter-max_length.hidden {
  display: none;
}

.anfield-slider-img {
  max-width: 100%;
}



.anpf-select-dropdown-wrap select {
  display: none;
}
.anpf-select-dropdown {
  position: relative;
}
.anpf-select-dropdown-show {
  height: calc(2.5rem - 2px);
  -moz-appearance: none;
  -webkit-appearance: none;
  background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAPklEQVR4Ae3TwREAEBQD0V/6do4SXPZg7EsBhsQ8IEmSMOsiuEfg3gL3oXC7wK0bd1G4o8X9F4yIkyQfSrIByQBjp7QuND8AAAAASUVORK5CYII=) no-repeat scroll right 0.5rem center/1.25rem 1.25rem;
  padding: 0 2rem 0 0.5rem;
  transition: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}
.anpf-select-dropdown-list {
  display: none;
  border: 1px solid rgba(0,0,0,.125);
  background: #fff;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  overflow: auto;
  max-height: 282px;
}
.anpf-select-dropdown .label-price {
  margin: 0 4px;
}
.anpf-select-dropdown-item {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
  min-height: 40px;
}
.anpf-select-dropdown-item:hover {
  background: #f1f1f1;
}
.anpf-select-dropdown .an-pf-field-image-wrap {
  margin: 0 10px 0 0px;
}
.anpf-select-dropdown-show-active {
  outline: 3px solid #000;
}
.anpf-select-dropdown-active {
  display: block;
}

.anfield-radio-vertical-list,
.anfield-checkbox-vertical-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.anfield-radio-vertical,
.anfield-checkbox-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  margin: 0;
}
.anfield-radio-vertical label,
.anfield-checkbox-vertical label {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.anfield-radio-vertical .anfield-radio-vertical-inner,
.anfield-checkbox-vertical .anfield-checkbox-vertical-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100px;
  height: 100%;
  padding: 9px 9px 9px 9px;
  position: relative;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  text-align: left;
}
.anfield-radio-vertical-img-wrap,
.anfield-checkbox-vertical-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 5px;
  margin-bottom: 7px;
  overflow: hidden;
}
.anfield-radio-vertical-img-wrap a,
.anfield-checkbox-vertical-img-wrap a {
  background: #F2F3F2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: #636060;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none!important;
  word-break: break-all;
}
.anfield-radio-vertical-no-img,
.anfield-checkbox-vertical-no-img {
  background: #F2F3F2;
}
.anfield-radio-vertical-img-wrap .an-pf-field-image-wrap,
.anfield-checkbox-vertical-img-wrap .an-pf-field-image-wrap {
  width: auto;
  height: auto;
  margin: 0;
}
.anfield-radio-vertical-img-wrap img,
.anfield-checkbox-vertical-img-wrap img {
  border-radius: 5px;
  max-width: 80px;
  max-height: 80px;
}
.anfield-radio-vertical-img-wrap svg,
.anfield-checkbox-vertical-img-wrap svg {
  border-radius: 5px;
}
.anfield-radio-vertical :checked + .anfield-radio-vertical-inner,
.anfield-checkbox-vertical :checked + .anfield-checkbox-vertical-inner {
  border-color: #000;
}
.anfield-radio-vertical-text,
.anfield-checkbox-vertical-text {
  display: flex;
  flex-direction: column;
}
.anfield-radio-vertical-text .title,
.anfield-checkbox-vertical-text .title {
  display: inline-block;
  font-size: 12px;
  /* line-height: 18px; */
  font-weight: bold;
  margin-bottom: 5px;
}
.anfield-radio-vertical-text .label-price,
.anfield-checkbox-vertical-text .label-price {
  font-size: 16px;
}
.anfield-radio-vertical input,
.anfield-checkbox-vertical input {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  margin: 0;
}
.anfield-checkbox-vertical input {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #1E82EC;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin: 0;
}
.anfield-checkbox-vertical input:checked {
  background-color: #1E82EC;
  border-color: #1E82EC;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m4 10 4 4 8-8'/%3e%3c/svg%3e");
}
.anfield-checkbox-vertical input:active {
  filter: brightness(90%);
}
.anfield-checkbox-vertical input:hover:not(:disabled) {
  border-color: #1E82EC;
}
.anfield-checkbox-vertical input:focus {
  border-color: #1E82EC;
  outline: none;
}
.anfield-checkbox-vertical input:disabled {
  filter: none;
  opacity: 0.5;
  cursor: not-allowed;
}
.anfield-checkbox-vertical input:disabled ~ .anfield-checkbox-vertical-inner {
  opacity: 0.5;
  cursor: not-allowed;
}

.anfield-radio-vertical input {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid #1E82EC;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin: 0;
}
.anfield-radio-vertical input:checked {
  background-color: #1E82EC;
  border-color: #1E82EC;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}
.anfield-radio-vertical input:disabled {
  filter: none;
  opacity: 0.5;
  cursor: not-allowed;
}
.anfield-radio-vertical input:disabled ~ .anfield-radio-vertical-inner {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   CUSTOM DRAWER INTERFACE STYLES - CHILD THEME
   ======================================== */

/* Drawer Button */
.product-variant-drawer-btn {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-variant-drawer-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.product-variant-drawer-btn .control-label {
    margin-bottom: 0;
    font-weight: 500;
}

.product-variant-drawer-btn i {
    font-size: 18px;
    color: #666;
    transition: transform 0.3s ease;
}

.product-variant-drawer-btn:hover i {
    transform: rotate(45deg);
}

/* Drawer Container - Use theme's existing styles */
.product-variant-drawer {
    /* Theme already has styles for .product-variant-drawer.open */
}

.attr-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding-right: 40px;
}

.cl-btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cl-btn-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Swatches Grid */
.swatches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.swatch-item {
    position: relative;
}

.swatch-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: auto; /* Allow clicks */
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.swatch-item label {
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.swatch-item label:hover {
    border-color: #e0e0e0;
    background: #f8f9fa;
}

.swatch-item input[type="radio"]:checked + label {
    border-color: #007bff;
    background: #f0f8ff;
}

/* Alternative selector for checked state */
.swatch-item:has(input[type="radio"]:checked) label {
    border-color: #007bff;
    background: #f0f8ff;
}

/* Color/Texture Display */
.swatch-item .color {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
}

.swatch-item .color.texture {
    background-size: cover;
}

/* Attribute Name */
.swatch-item .attribute-name {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.swatch-item .label-price {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Clear button for individual radio options */
.btn-clear-radio {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-clear-radio:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .swatches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .swatch-item .color {
        height: 60px;
    }
    
    .clr-drawer-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .swatches-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .swatch-item .color {
        height: 50px;
    }
}

/* ========================================
   GROUP DRAWER INTERFACE STYLES
   ======================================== */

/* Group Container */
.an-pf-group-container {
    margin-bottom: 20px;
}

/* Group Drawer Button */
.an-productfield-group-drawer-container .product-variant-drawer-btn {
    /* Use same styling as regular drawer buttons */
}

/* Responsive Group Drawer */
@media (max-width: 768px) {
    .group-fields-container .an-pf-field {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .an-productfield-group-drawer-container .clr-drawer-content {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .group-fields-container .an-pf-field {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .an-productfield-group-drawer-container .attr-title {
        padding: 15px;
        font-size: 18px;
    }
}