.alamar-free-gift-panel {
    border: 1px solid #f8d0de;
    border-radius: 28px;
    padding: 22px;
    margin: 18px 0;
    background: #fff;
    color: #805e9c;
    font-family: "CaslonDoric";
    font-size: 16px;
    line-height: 1.45;
}

.alamar-free-gift-panel.is-locked {
    opacity: 0.78;
    background: rgba(248, 208, 222, 0.12);
}

.alamar-free-gift-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.alamar-free-gift-kicker {
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f09fc5;
    margin-bottom: 6px;
}

.alamar-free-gift-title {
    font-family: "CaslonDoric";
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    color: #805e9c;
}

.alamar-free-gift-badge,
.alamar-free-gift-line-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-family: "CaslonDoric";
    font-size: 12px;
    line-height: 1;
    background: #f09fc5;
    color: #fff;
    white-space: nowrap;
}

.alamar-free-gift-line-badge {
    margin-left: 6px;
    vertical-align: middle;
}

.alamar-free-gift-progress {
    position: relative;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #f8d0de;
    margin-bottom: 14px;
}

.alamar-free-gift-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f09fc5;
    transition: width 220ms ease;
}

.alamar-free-gift-message,
.alamar-free-gift-current,
.alamar-free-gift-error {
    margin: 0 0 14px;
    font-family: "CaslonDoric";
    font-size: 16px;
    line-height: 1.45;
    color: #805e9c;
}

.alamar-free-gift-current {
    opacity: 0.82;
}

.alamar-free-gift-error {
    color: #805e9c;
}

.alamar-free-gift-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.alamar-free-gift-field {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #805e9c;
}

.alamar-free-gift-field span {
    font-family: "CaslonDoric";
    font-size: 16px;
    line-height: 1.2;
    color: #805e9c;
}

.alamar-free-gift-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #f8d0de;
    border-radius: 14px;
    padding: 0 12px;
    background: #fff;
    color: #805e9c;
    font-family: "CaslonDoric";
    font-size: 16px;
}

.alamar-free-gift-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.alamar-free-gift-button,
.alamar-free-gift-remove {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 18px;
    cursor: pointer;
    font-family: "CaslonDoric";
    font-size: 16px;
    transition: opacity 180ms ease, transform 180ms ease;
}

.alamar-free-gift-button {
    border: 1px solid #f09fc5;
    background: #f09fc5;
    color: #fff;
}

.alamar-free-gift-button:hover,
.alamar-free-gift-remove:hover {
    transform: translateY(-1px);
}

.alamar-free-gift-button:disabled,
.alamar-free-gift-remove:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.alamar-free-gift-remove {
    border: 1px solid #f8d0de;
    background: transparent;
    color: #f09fc5;
}

.alamar-free-gift-price,
.alamar-free-gift-line-price {
    font-family: "CaslonDoric";
    font-size: 16px;
    color: #f09fc5;
}

.alamar-free-gift-quantity {
    display: inline-flex;
    min-width: 24px;
    justify-content: center;
    font-family: "CaslonDoric";
    font-size: 16px;
    color: #805e9c;
}

@media (max-width: 480px) {
    .alamar-free-gift-fields {
        grid-template-columns: 1fr;
    }

    .alamar-free-gift-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .alamar-free-gift-button,
    .alamar-free-gift-remove {
        width: 100%;
    }
}


.alamar-free-gift-mobile-mount {
    display: none;
}

@media (max-width: 767px) {
    body.woocommerce-checkout .alamar-free-gift-mobile-mount {
        display: block;
        width: 100%;
    }

    body.woocommerce-checkout .alamar-free-gift-mobile-mount .alamar-free-gift-panel {
        margin: 0 0 22px;
    }

    body.woocommerce-checkout .wc-block-checkout__actions .alamar-free-gift-panel,
    body.woocommerce-checkout .checkout-order-summary-block-fill .alamar-free-gift-panel {
        display: none;
    }
}
