/* WOW Product Personalisation v1.0.0
----------------------------------------------------------------------- */

.wow-pers-widget {
    display: block;
    width: 100%;
}

/* ── Heading ─────────────────────────────────────────────────────── */

.wow-pers-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.4;
}

/* ── Sections ────────────────────────────────────────────────────── */

.wow-pers-section {
    display: block;
}

.wow-pers-section + .wow-pers-section {
    margin-top: 24px;
}

/* ── Labels ──────────────────────────────────────────────────────── */

.wow-pers-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: default;
}

/* ── Cost badge ──────────────────────────────────────────────────── */

.wow-pers-cost-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.07);
    white-space: nowrap;
}

/* ── Textarea ────────────────────────────────────────────────────── */

.wow-pers-textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    color: #2c2c2c;
    resize: vertical;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.wow-pers-textarea:focus {
    outline: none;
    border-color: #2c2c2c;
    box-shadow: 0 0 0 2px rgba(44, 44, 44, 0.1);
}

/* ── Character counter ───────────────────────────────────────────── */

.wow-pers-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #888888;
    margin-top: 4px;
}

.wow-pers-char-count.wow-pers-near-limit {
    color: #e65100;
    font-weight: 600;
}

/* ── Signature row ───────────────────────────────────────────────── */

.wow-pers-sig-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-wrap: wrap;
}

.wow-pers-sig-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2c2c2c;
    margin: 0;
}

.wow-pers-sig-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    flex-wrap: wrap;
}

.wow-pers-sig-desc {
    margin: 6px 0 0 28px;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .wow-pers-textarea {
        font-size: 16px; /* prevents iOS zoom */
    }
}

/* ── Accordion ───────────────────────────────────────────────────── */

.wow-pers-accordion {
    width: 100%;
}

.wow-pers-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-bottom: 1px solid currentColor;
    cursor: pointer;
    text-align: left;
    font-size: inherit;
    font-family: inherit;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.wow-pers-accordion-trigger:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Icon left: title pushed to the right of the icon */
.wow-pers-accordion--icon-left .wow-pers-accordion-trigger {
    justify-content: flex-start;
}

/* Icon right: title takes remaining space, icon sits at the end */
.wow-pers-accordion--icon-right .wow-pers-accordion-trigger {
    justify-content: space-between;
}

.wow-pers-accordion-title {
    flex: 1;
    font-weight: 600;
}

/* Icon wrapper — handles font icons and SVG icons */
.wow-pers-accordion-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.25s ease;
}

.wow-pers-accordion-icon i,
.wow-pers-accordion-icon svg {
    display: block;
    font-size: 14px;
    width: 14px;
    transition: transform 0.25s ease;
}

/* Body */
.wow-pers-accordion-body {
    padding: 20px 0 0;
}
