/* NKD Coupon Display — Frontend Styles (matches HomePaylater mockup) */

.nkd-coupon-display {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin: 16px 0;
    font-family: inherit;
    overflow: hidden;
}

/* ── Header ── */
.nkd-cd-header {
    background: #efefef;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #ddd;
}

/* Title + logo on same row */
.nkd-cd-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nkd-cd-title {
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    text-align: center;
    color: #111;
    line-height: 1.2;
}

.nkd-cd-header-logo {
    flex-shrink: 0;
}

.nkd-cd-header-logo img {
    max-height: 32px;
    width: auto;
    display: block;
}

/* Subtitle full-width below title+logo */
.nkd-cd-subtitle {
    font-size: 0.78em;
    color: #555;
    font-style: italic;
    margin: 6px 0 0;
    text-align: center;
    line-height: 1.3;
}

/* ── Coupon list ── */
.nkd-cd-list {
    padding: 0 16px;
}

.nkd-cd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nkd-cd-item:last-child {
    border-bottom: none;
}

/* Icon: fixed-width column */
.nkd-cd-item-icon {
    flex-shrink: 0;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nkd-cd-item-icon img {
    max-width: 52px;
    max-height: 40px;
    object-fit: contain;
}

/* Description text */
.nkd-cd-item-text {
    flex: 1;
    font-size: 0.88em;
    line-height: 1.45;
    color: #222;
}

/* Apply button — red pill, supports multi-line label */
.nkd-cd-apply-btn {
    flex-shrink: 0;
    width: 96px;
    min-height: 34px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    line-height: 1.2;
    font-size: 12px;
    margin: 0;
    transition: background 0.2s ease;
}

.nkd-cd-apply-btn:hover {
    background: #b71c1c;
}

.nkd-cd-btn-icon {
    font-size: 1.1em;
    line-height: 1;
}

.nkd-cd-btn-label {
    display: block;
}

/* Loading state */
.nkd-cd-apply-btn.nkd-cd-loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.nkd-cd-apply-btn.nkd-cd-loading::after {
    content: '...';
}

/* Notice */
.nkd-cd-notice {
    margin: 0 16px 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
}

.nkd-cd-notice.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.nkd-cd-notice.error {
    background: #ffebee;
    color: #c62828;
}