.evo-gift-options {
    width: 100%;
    min-width: 0;
    margin: 12px 0 18px;
    color: #302620;
}

.evo-gift-options [hidden] { display: none !important; }

.evo-gift-custom {
    display: grid;
    justify-items: start;
    gap: 6px;
    margin: 0 0 22px;
}

.evo-gift-label,
.evo-gift-recipient label {
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.4;
}

.evo-gift-amount-input { position: relative; width: min(100%, 175px); }

.evo-gift-amount-input > span {
    position: absolute;
    inset: 0 13px 0 auto;
    display: flex;
    align-items: center;
    color: #604f43;
    pointer-events: none;
}

.evo-gift-product {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px clamp(12px, 3vw, 20px) 15px;
    border: 1px solid #ded0c2;
    background: #f9f5ef;
    container-type: inline-size;
}

.evo-gift-product legend { padding: 0 6px; font-size: 1rem; font-weight: 700; }

.evo-gift-product__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
    gap: 8px;
}

.evo-gift-product__choices label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #dccbbd;
    background: #fffdf9;
    cursor: pointer;
    font-size: .92rem;
}

.evo-gift-product__choices label:has(input:checked) {
    border-color: #8c6551;
    background: #efe3d7;
    font-weight: 650;
}

.evo-gift-product__choices input[type=radio] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #694c3b;
}

.evo-gift-recipient {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.evo-gift-recipient label { display: grid; align-content: start; gap: 5px; min-width: 0; margin: 0; }
.evo-gift-recipient__greeting { grid-column: 1 / -1; }

.woocommerce .evo-gift-options :is(input:not([type=radio]), textarea) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 44px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #a99282;
    border-radius: 0;
    background: #fffdfa;
    color: #302620;
    font: inherit;
    font-size: max(16px, .92rem);
    font-weight: 400;
    line-height: 1.4;
    box-shadow: none;
}

.woocommerce .evo-gift-amount-input input[type=number] { padding-inline-end: 34px; appearance: textfield; }
.evo-gift-amount-input input::-webkit-inner-spin-button { appearance: none; }
.evo-gift-amount-input input::-webkit-outer-spin-button { appearance: none; }
.evo-gift-recipient textarea { resize: vertical; }

.woocommerce .evo-gift-options :is(input, textarea)::placeholder { color: #75675c; opacity: 1; }
.woocommerce .evo-gift-options :is(input:not([type=radio]), textarea):focus { outline: 2px solid #8c6551; outline-offset: 2px; }

.evo-gift-options small { color: #625349; font-size: .78rem; font-weight: 400; line-height: 1.4; }
.evo-gift-recipient label > span > small { margin-inline-start: 3px; }
.evo-gift-greeting-limit { text-align: end; }

.evo-gift-product .evo-gift-delivery-note {
    margin: 14px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e4d8cc;
    color: #5c4d44;
    font-size: .84rem;
    line-height: 1.45;
}

.variations_form:has(.evo-gift-custom:not([hidden])) .woocommerce-variation-price { display: none; }

@container (max-width: 440px) {
    .evo-gift-recipient { grid-template-columns: minmax(0, 1fr); }
}
