/* Coupon Component Styles */

/* ── Accordions ── */
.co-accordion {
    border-top: 1px solid var(--co-border);
}

.co-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.co-accordion-trigger-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--co-text);
}

.co-accordion-icon {
    width: 14px;
    height: 14px;
    color: var(--co-primary);
    flex-shrink: 0;
}

.co-accordion-chevron {
    width: 14px;
    height: 14px;
    color: var(--co-text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.co-accordion-chevron.is-open {
    transform: rotate(180deg);
}

.co-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.co-accordion-body.is-open {
    max-height: 300px;
}

.co-accordion-inner {
    padding: 0 1rem 0.875rem;
}

/* ── Applied Pill ── */
.co-applied-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f0f7f1;
    border: 1px solid #c3e6cb;
    border-radius: var(--co-radius-sm);
}

.co-applied-pill-left {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.co-applied-pill-icon {
    width: 14px;
    height: 14px;
    color: var(--co-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.co-applied-pill-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.co-applied-pill-code-row,
.co-applied-pill-disc-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #155724;
}

.co-applied-label-text {
    opacity: 0.7;
    font-weight: 400;
}

.co-applied-code {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.co-applied-saving {
    font-weight: 600;
    color: var(--co-success);
}

.co-applied-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    color: #155724;
    opacity: 0.6;
    flex-shrink: 0;
}

.co-applied-remove svg {
    width: 14px;
    height: 14px;
}
