/* developed by web-premium.ir */

.hmyt-extra-fees-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hmyt-ef-group-container {background: #fff;padding: 15px;border-radius: 12px;}


.hmyt-ef-group-title {
    position: relative;
    margin-bottom: 15px;
}
.hmyt-ef-group-title > span {
    display: inline-flex !important;
    background: #fff;
    position: relative;
    padding-left: 15px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    color: #475569;
}
.hmyt-ef-group-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    border-bottom: 1px dashed #e2e8f0;
    z-index: 1;
}
.hmyt-ef-badge {
    font-size: 11px;
    color: #888;
    font-weight: normal;
    opacity: 0.8;
}


.hmyt-form-field-note {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #888;
}
.hmyt-form-field-note svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: all 0.2s;
}
.hmyt-form-field-note:hover svg {
    opacity: 1;
    color: var(--hmyt-pc-primary, #ee1844);
}

#hmyt-tooltip-container {
    position: absolute;
    z-index: 99999;
    background: #1c1f3f;
    color: #fff;
    font-size: 13px;
    padding: 10px 15px;
    width: fit-content;
    text-align: center;
    max-width: 280px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(10px);
    line-height: 1.6;
    font-family: inherit;
}
#hmyt-tooltip-container.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
#hmyt-tooltip-container::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #1c1f3f;
    transform: translateX(-50%) rotate(45deg);
}
#hmyt-tooltip-container.arrow-top::after { top: -4px; }
#hmyt-tooltip-container.arrow-bottom::after { bottom: -4px; }


.checkbox-input .hmyt-ef-label-text {
    position: relative;
    padding-right: 26px;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
}
.checkbox-input .hmyt-ef-label-text::before {
    content: '';
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 4px;
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    border: solid 2px #cfd8dc;
    box-sizing: border-box;
    transition: all 0.2s;
}
.checkbox-input .hmyt-ef-label-text::after {
    content: '';
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
    height: 10px;
    width: 5px;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0;
    box-sizing: border-box;
    transition: all 0.2s;
}
.checkbox-input:hover .hmyt-ef-label-text::before {
    border-color: var(--hmyt-pc-primary, #ffb03b);
}
.checkbox-input .hmyt-ef-input:checked ~ .hmyt-ef-label-text::before {
    border-color: var(--hmyt-pc-primary, #ffb03b);
    background: var(--hmyt-pc-primary, #ffb03b);
}
.checkbox-input .hmyt-ef-input:checked ~ .hmyt-ef-label-text::after {
    opacity: 1;
}


.hmyt-ef-options-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    user-select: none;
}


.hmyt-ef-option-label {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    margin: 0;
}
.hmyt-ef-option-label:hover {
}


.hmyt-ef-input {
    display: none !important;
}


.hmyt-ef-label-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    transition: all 0.2s ease;
}

.hmyt-ef-fake-input {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.hmyt-ef-option-label.checkbox-input .hmyt-ef-fake-input {
    border-radius: 4px;
}

.hmyt-ef-fake-input span {
    width: 9px;
    height: 9px;
    background: transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.hmyt-ef-option-label.checkbox-input .hmyt-ef-fake-input span {
    border-radius: 2px;
}


.hmyt-ef-input:checked ~ .hmyt-ef-label-text .hmyt-ef-fake-input {
    border-color: var(--hmyt-pc-primary, #ee1844);
}
.hmyt-ef-input:checked ~ .hmyt-ef-label-text .hmyt-ef-fake-input span {
    background: var(--hmyt-pc-primary, #ee1844);
}
.hmyt-ef-input:checked ~ .hmyt-ef-label-text {
    font-weight: 700;
    color: #222;
}
.hmyt-ef-input:checked ~ .hmyt-ef-option-price {
    color: var(--hmyt-pc-primary, #ee1844);
    font-weight: 700;
}


.hmyt-ef-option-price {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
    color: #444;
    transition: all 0.2s ease;
}

.hmyt-ef-option-price .woocommerce-Price-currencySymbol {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    margin-right: 4px;
}
.hmyt-ef-free-text {
    color: #107e18;
    font-size: 13px;
    font-weight: 600;
}


.hmyt-ef-group-desc-inline {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-right: 5px;
    background: transparent;
}

.hmyt-ef-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.hmyt-ef-field-container {
    border-radius: 12px;
    transition: all 0.3s ease;
}


.hmyt-ef-field-container[data-hidden="true"] {
    display: none !important;
}

.hmyt-ef-field-header {
    position: relative;
    margin-bottom: 12px;
}

.hmyt-ef-field-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    border-bottom: 1px dashed #e2e8f0;
    z-index: 1;
}

.hmyt-ef-field-title {
    display: inline-flex !important;
    background: #fdfdfd;
    position: relative;
    padding-left: 15px;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #232b39;
    z-index: 2;
}

.hmyt-ef-badge.req-badge {
    color: #ef4444;
    background: #fee2e2;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.hmyt-ef-badge.opt-badge {
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}




.hmyt-ef-input-text {
    width: 100%;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.hmyt-ef-input-text:focus {
    border-color: var(--hmyt-pc-primary, #ee1844);
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 24, 68, 0.1);
}


.quantity-input {
    justify-content: flex-start !important;
}


.hmyt-ef-qty-box {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #fafcff;
    border: 1px solid #e0e0e2;
    border-radius: 12px;
    padding: 0 8px;
    width: 110px;
    height: 44px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    user-select: none;
    flex-shrink: 0;
}

.hmyt-ef-qty-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 100%;
    color: var(--hmyt-pc-primary, #ee1844);
    transition: opacity 0.2s;
}

.hmyt-ef-qty-btn svg { display: block; }

.hmyt-ef-qty-btn.hmyt-disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
    cursor: default !important;
    filter: grayscale(100%) !important;
}

.hmyt-ef-qty-num-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 30px;
}

.hmyt-ef-qty-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--hmyt-pc-primary, #ee1844);
    width: auto;
    line-height: 1.2;
}

.hmyt-ef-qty-limit-text {
    font-size: 9px;
    color: #a1a3a8;
    font-weight: normal;
    margin-top: -4px;
}

.hmyt-ef-button-loading {
    display: inline-flex;
    vertical-align: middle;
    line-height: 0;
}

.hmyt-ef-button-loading > div {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    color: var(--hmyt-pc-primary, #ee1844);
}

.hmyt-ef-button-loading > div > span {
    position: absolute;
    top: 13.2px;
    width: 5.2px;
    height: 5.2px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.hmyt-ef-button-loading > div > span:nth-child(1) { right: 3.2px; animation: HmytEf_LoadingStart .6s ease 0s infinite; }
.hmyt-ef-button-loading > div > span:nth-child(2) { right: 3.2px; animation: HmytEf_LoadingBetween .6s ease 0s infinite; }
.hmyt-ef-button-loading > div > span:nth-child(3) { right: 12.8px; animation: HmytEf_LoadingBetween .6s ease 0s infinite; }
.hmyt-ef-button-loading > div > span:nth-child(4) { right: 22.4px; animation: HmytEf_LoadingEnd .6s ease 0s infinite; }

@keyframes HmytEf_LoadingStart { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 0.6; } }
@keyframes HmytEf_LoadingBetween { 0% { transform: translate(0,0); } 100% { transform: translate(-9.6px,0); } }
@keyframes HmytEf_LoadingEnd { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(0); opacity: 0; } }
.hmyt-hidden { display: none !important; }

.hmyt-ef-option-label.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
    background: #f8fafc;
}