.wallregi-block-giftcard-redemption {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.wallregi-block-giftcard-toggle.button {
    width: auto;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.wallregi-block-giftcard-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
}

.wallregi-block-giftcard-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
}

.wallregi-block-giftcard-form .button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.wallregi-block-giftcard-message {
    margin: 10px 0 0;
    font-size: 14px;
}

.wallregi-block-giftcard-message.error {
    color: #b42318;
}

.wallregi-block-giftcard-message.success {
    color: #067647;
}

.wallregi-block-applied-giftcards {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.wallregi-block-applied-giftcards h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

.wallregi-block-applied-giftcards ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wallregi-block-applied-giftcards li,
.wallregi-block-applied-giftcards-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;
}

.wallregi-block-applied-giftcards-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.wallregi-block-applied-giftcards-code {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallregi-block-applied-giftcards-balance {
    flex: 1 1 100%;
    font-size: 12px;
    color: #64748b;
}

.wallregi-block-applied-giftcards-amount {
    flex: 0 0 auto;
    color: #067647;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.wallregi-block-applied-giftcards-redeem {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wallregi-block-redeem-input {
    max-width: 120px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
}

.wallregi-block-redeem-update.button {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
}

.wallregi-block-remove-giftcard.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 50%;
    background: #fff5f5;
    color: #b42318;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.wallregi-block-remove-giftcard.button:hover,
.wallregi-block-remove-giftcard.button:focus {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 480px) {
    .wallregi-block-giftcard-form {
        flex-direction: column;
    }

    .wallregi-block-giftcard-form .button {
        width: 100%;
    }
}

/* Buyer-chosen gift card redeem amount modal (block cart/checkout) */
.wallregi-redeem-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.wallregi-redeem-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}

.wallregi-redeem-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 22px 24px 24px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
}

.wallregi-redeem-modal__title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
}

.wallregi-redeem-modal__meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
}

.wallregi-redeem-modal__meta dt {
    margin: 0;
    font-weight: 500;
    color: #64748b;
}

.wallregi-redeem-modal__meta dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: #0f172a;
}

.wallregi-redeem-modal__label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.wallregi-redeem-modal__input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.wallregi-redeem-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

body.wallregi-redeem-modal-open {
    overflow: hidden;
}
