/* ============ Buy-Now modal: coupon section ============ */

.pm-coupon {
    margin-top: 4px;
}

/* "Have any coupon?" trigger — clean full-width ticket-style card */
.pm-coupon-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 14px;
    padding: 13px 16px;
    border: 1px dashed #2f7df6;
    border-radius: 12px;
    text-align: left;
    background: #f2f8ff;
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pm-coupon-trigger:hover {
    background: #e9f3ff;
    box-shadow: 0 6px 18px rgba(47, 125, 246, 0.12);
}

.pm-coupon-trigger-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #2f7df6;
    color: #ffffff;
    font-size: 16px;
}

.pm-coupon-trigger-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pm-coupon-trigger-text {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #2f7df6;
}

.pm-coupon-trigger-sub {
    font-size: 12.5px;
    color: #8a97ad;
    line-height: 1.3;
}

.pm-coupon-trigger-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(47, 125, 246, 0.1);
    color: #2f7df6;
    font-size: 12px;
    transition: background 0.2s ease;
}

.pm-coupon-trigger:hover .pm-coupon-trigger-arrow {
    background: rgba(47, 125, 246, 0.18);
}

/* "I don't have any coupon" collapse link */
.pm-coupon-cancel {
    display: inline-block;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #8a97ad;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.pm-coupon-cancel:hover {
    color: #2f7df6;
}

/* Reveal-able input + apply button */
.pm-coupon-box {
    margin-top: 14px;
}

.pm-coupon-input-group {
    display: flex;
    gap: 10px;
}

.pm-coupon-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 18px;
    border: 1px solid #dbe4f3;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1e2a3b;
    background: #f7faff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-coupon-input:focus {
    outline: none;
    border-color: #2f7df6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(47, 125, 246, 0.12);
}

.pm-coupon-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: #9aa7bd;
}

.pm-coupon-apply {
    flex: 0 0 auto;
    flex-shrink: 0;
    padding: 18px 31px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.pm-coupon-apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Feedback line */
.pm-coupon-msg {
    margin-top: 8px;
    font-size: 14px;
}

.pm-coupon-msg.error {
    color: #e63757;
}

/* Applied state chip */
.pm-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding: 12px 16px;
    border: 1px dashed #2fbf71;
    border-radius: 10px;
    background: rgba(47, 191, 113, 0.08);
}

.pm-coupon-applied .pm-coupon-applied-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pm-coupon-applied .pm-coupon-applied-icon {
    color: #2fbf71;
    font-size: 18px;
}

.pm-coupon-applied .pm-coupon-applied-code {
    font-weight: 700;
    letter-spacing: 1px;
    color: #1e2a3b;
}

.pm-coupon-applied .pm-coupon-applied-save {
    font-size: 13px;
    color: #2fbf71;
    font-weight: 600;
}

.pm-coupon-remove {
    flex: 0 0 auto;
    border: none;
    background: none;
    color: #e63757;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Footer price preview when a coupon is applied */
.pm-total-old {
    display: none;
    color: #9aa7bd;
    font-size: 15px;
    font-weight: 600;
    margin-right: 6px;
}

.pm-total.has-coupon .pm-total-old {
    display: inline;
}

.pm-total-save-badge {
    display: none;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #2fbf71;
}

.pm-total.has-coupon .pm-total-save-badge {
    display: block;
}
