.amgift-box {
    margin: 16px 0;
}

.amgift-group {
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 12px;
}

.amgift-group__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f4f5f7;
    font-size: 14px;
    color: #1f2933;
}

.amgift-group__icon {
    font-size: 15px;
    line-height: 1;
}

.amgift-group__amount {
    font-weight: 700;
}

.amgift-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 0;
    cursor: pointer;
    border-top: 1px solid #f0f1f3;
}

.amgift-group__head + .amgift-item {
    border-top: 0;
}

.amgift-item__radio {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.amgift-item__radio input {
    width: 18px;
    height: 18px;
    accent-color: #1666ff;
    margin: 0;
    cursor: pointer;
}

.amgift-item__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f5f7;
}

.amgift-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amgift-item__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amgift-item__name {
    font-size: 13px;
    color: #52606d;
    line-height: 1.35;
}

.amgift-item__selects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amgift-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d6dae0;
    border-radius: 16px;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    padding: 5px 26px 5px 12px;
    font-size: 12px;
    color: #3e4c59;
    line-height: 1.4;
    cursor: pointer;
    max-width: 160px;
}

.amgift-select:focus {
    outline: none;
    border-color: #1666ff;
}

.amgift-item__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* PDP block price */
.amgift-item__price .amgift-now {
    font-size: 14px;
    font-weight: 700;
    color: #1f2933;
}

.amgift-item__price .amgift-was,
.amgift-item__price .amgift-was * {
    font-size: 12px;
    color: #9aa5b1;
    text-decoration: line-through;
    font-weight: 400;
}

.amgift-group__msg {
    margin: 0;
    padding: 0 14px 12px;
    font-size: 12px;
    color: #d64545;
}

/* strike-through + 0đ for the gift line in mini-cart / cart / checkout.
   Inherit size + colour from the surrounding price cell so it matches the
   regular product price shown right below it. */
.amgift-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.amgift-price .amgift-now {
    order: 1;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
}

.amgift-price .amgift-was,
.amgift-price .amgift-was * {
    order: 2;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    text-decoration: line-through;
    opacity: 0.75;
}

/* Vulcano cart popup: stack the gift price — struck original on top (small, muted),
   "0đ" below it as the effective price (matches the regular price colour/size). */
.cart-popup-item-price .amgift-price {
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 0;
    line-height: 1.25;
}

.cart-popup-item-price .amgift-price .amgift-now {
    order: 2;
    color: #c00;
    font-size: 1.5rem;
}

.cart-popup-item-price .amgift-price .amgift-was,
.cart-popup-item-price .amgift-price .amgift-was * {
    order: 1;
    color: #9aa5b1;
    font-size: 0.8rem;
    opacity: 1;
}

/* ── Vulcano one-page checkout: free gift row ───────────────────────────── */

/* drop the Amasty "FREE!" badge on gift rows */
.osc-product-item.osc-item-gift .message {
    display: none !important;
}

/* qty: read-only number, centred in the same footprint as the +/- controls
   (2 × 30px buttons + 34px input) so it lines up with the qty column of the
   paid rows instead of hugging the price column. */
.osc-qty-readonly {
    grid-area: qty;
    justify-self: center;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    font-size: 15px;
    font-weight: 600;
    color: #52606d;
}

/* price: "0 ₫" on top, real price struck-through below */
.osc-item-gift .osc-item-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    white-space: nowrap;
}

.osc-item-gift .osc-item-price-block .osc-item-price {
    display: block;
    color: #c00;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.osc-item-gift .osc-item-price-block .osc-item-old-price {
    display: block;
    margin: 0;
    font-size: 12px;
    color: #9aa5b1;
    text-decoration: line-through;
}

@media (max-width: 767px) {
    .amgift-item {
        gap: 8px;
        padding: 10px;
    }

    .amgift-item__thumb {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .amgift-item__name {
        font-size: 12px;
    }

    /* max 2 attribute selects per row, shrunk to fit */
    .amgift-item__selects {
        gap: 6px;
    }

    .amgift-select {
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
        max-width: none;
        padding: 4px 22px 4px 8px;
        font-size: 11px;
        background-position: right 7px center;
    }

    /* mobile OSC grid stacks qty+price full width — no fixed footprint needed */
    .osc-qty-readonly {
        min-width: 0;
        justify-self: start;
    }
}
