/* Wallpaper Roll Calculator – wallpaper-calc.css v1.2.0 */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&display=swap');

/* ── Widget shell ───────────────────────────────────────────────────────────── */
.wpc-widget {
    font-family: 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
    margin: 1.5rem 0;
    border: 1px solid #ddd8d0;
    background: #faf8f4;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.wpc-header {
    background: #2c2a27;
    color: #f5f0e8;
    padding: 1.2rem 1.6rem;
}
.wpc-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    margin: 0 0 0.15rem;
    color: #f5f0e8;
    border: none !important;
    padding: 0 !important;
    line-height: 1.2;
}
.wpc-subtitle {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b5afa6;
    margin: 0;
}

/* ── Controls ───────────────────────────────────────────────────────────────── */
.wpc-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    align-items: flex-end;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid #ddd8d0;
    background: #f5f0e8;
}
.wpc-ctrl-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.wpc-ctrl-group label {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b6560;
    display: block;
    margin-bottom: 0 !important;
}
.wpc-input-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.wpc-inp {
    width: 78px !important;
    border: 1px solid #ddd8d0 !important;
    background: #faf8f4 !important;
    padding: 0.42rem 0.55rem !important;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    color: #2c2a27;
    outline: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    transition: border-color 0.15s;
}
.wpc-inp:focus { border-color: #8b7355 !important; box-shadow: none !important; }
.wpc-ulab { font-size: 0.72rem; color: #6b6560; letter-spacing: 0.04em; }

.wpc-repeat-display .wpc-repeat-val {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.95rem;
    color: #2c2a27;
    background: #faf8f4;
    border: 1px solid #ddd8d0;
    padding: 0.42rem 0.7rem;
    display: inline-block;
}

.wpc-btn-apply {
    background: #2c2a27;
    color: #faf8f4;
    border: none !important;
    padding: 0.52rem 1.3rem !important;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background 0.18s;
    align-self: flex-end;
}
.wpc-btn-apply:hover { background: #8b7355; }

/* ── Stage wrap ─────────────────────────────────────────────────────────────── */
.wpc-stage-wrap {
    padding: 1.4rem 1.6rem 3.5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Blank prompt ───────────────────────────────────────────────────────────── */
.wpc-blank-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    height: 200px;
    background: #f5f0e8;
    border: 1px dashed #c8c2ba;
    color: #b5afa6;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.6;
}
.wpc-blank-prompt svg { opacity: 0.5; }

/* ── Visualiser ─────────────────────────────────────────────────────────────── */
.wpc-visualiser {
    position: relative;
    overflow: visible;
    border: 2px solid #2c2a27;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.wpc-wall-canvas {
    display: block;
}

/* Drop / roll labels overlay */
.wpc-roll-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}
.wpc-roll-label {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    gap: 2px;
    overflow: hidden;
}
.wpc-roll-label--trim .wpc-drop-num {
    opacity: 0.5;
}

.wpc-drop-num {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    white-space: nowrap;
}
.wpc-roll-ref {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.55rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    white-space: nowrap;
}

/* ── Dimension arrows ───────────────────────────────────────────────────────── */
.wpc-arrow { width: 0; height: 0; border: 4px solid transparent; flex-shrink: 0; }
.wpc-arrow-left  { border-right-color: #555; }
.wpc-arrow-right { border-left-color:  #555; }
.wpc-arrow-up    { border-bottom-color: #555; }
.wpc-arrow-down  { border-top-color:    #555; }
.wpc-dim-line-h  { background: #555; height: 1px; flex: 1; }
.wpc-dim-line-v  { background: #555; width: 1px;  flex: 1; }
.wpc-dim-value {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: #2c2a27;
    letter-spacing: 0.04em;
    background: #faf8f4;
    padding: 0 0.3rem;
    white-space: nowrap;
}
.wpc-dim-value--vert {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 0.3rem 0;
}
.wpc-dim-width {
    position: absolute;
    bottom: -1.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    pointer-events: none;
    z-index: 5;
}
.wpc-dim-height {
    position: absolute;
    left: -2.2rem;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    pointer-events: none;
    z-index: 5;
}

/* ── Recommended drop note ──────────────────────────────────────────────────── */
.wpc-drop-note {
    padding: 0.7rem 1.6rem;
    background: #f5f0e8;
    border-bottom: 1px solid #ddd8d0;
    font-size: 0.78rem;
    color: #6b6560;
    line-height: 1.6;
    letter-spacing: 0.01em;
}
.wpc-drop-note strong {
    color: #2c2a27;
    font-weight: 500;
}

/* ── Pattern repeat note ────────────────────────────────────────────────────── */
.wpc-repeat-note {
    margin-top: 0.8rem;
    padding: 0.6rem 0.9rem;
    background: #f5f0e8;
    border-left: 3px solid #8b7355;
    font-size: 0.75rem;
    color: #6b6560;
    letter-spacing: 0.02em;
    line-height: 1.6;
    font-style: italic;
}

/* ── Error ──────────────────────────────────────────────────────────────────── */
.wpc-error {
    margin: 0.8rem 0 0;
    padding: 0.7rem 1rem;
    background: #fdf3f3;
    border-left: 3px solid #c0392b;
    font-size: 0.8rem;
    color: #8b4a4a;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* ── Summary bar ────────────────────────────────────────────────────────────── */
.wpc-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    align-items: center;
    background: #2c2a27;
    color: #faf8f4;
    padding: 0.85rem 1.6rem;
}
.wpc-summary-item { display: flex; flex-direction: column; gap: 0.1rem; }
.wpc-s-label {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b5afa6;
}
.wpc-s-value {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #faf8f4;
}
.wpc-summary-item--price .wpc-s-value--total {
    font-size: 1.4rem;
    color: #d4b896;
}

/* ── Price placeholder & note ───────────────────────────────────────────────── */
.wpc-price-placeholder {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85rem;
    font-style: italic;
    color: #6b6560;
}
.wpc-price-note {
    font-size: 0.78rem;
    font-weight: 300;
    color: #6b6560;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .wpc-header     { padding: 1rem 1.1rem; }
    .wpc-controls   { padding: 0.8rem 1.1rem; }
    .wpc-stage-wrap { padding: 1rem 1.1rem 3.5rem; }
    .wpc-summary    { padding: 0.8rem 1.1rem; gap: 0.5rem 1rem; }
    .wpc-inp        { width: 64px !important; }
    .wpc-title      { font-size: 1.25rem; }
}
