/* Mural Size Calculator – mural-adjuster.css v1.6.3
   !important is only used on layout/structural properties (width, border-radius,
   box-shadow, padding on inputs) to prevent theme breakage.
   All font-family, font-size, color and background properties are overridable
   from your theme's Custom CSS using the selectors listed in the README.
*/

@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 ───────────────────────────────────────────────────────────── */
.mca-widget {
    font-family: 'Ubuntu', sans-serif;
    margin: 1.5rem 0;
    border: 1px solid #ddd8d0;
    background: #faf8f4;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.mca-header {
    background: #2c2a27;
    color: #f5f0e8;
    padding: 1.2rem 1.6rem;
}
.mca-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;
}
.mca-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 row ───────────────────────────────────────────────────────────── */
.mca-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;
}
.mca-ctrl-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mca-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;
}
.mca-input-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.mca-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: 1.05rem;
    color: #2c2a27;
    outline: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    transition: border-color 0.15s;
}
.mca-inp:focus {
    border-color: #8b7355 !important;
    box-shadow: none !important;
}
.mca-ulab {
    font-size: 0.72rem;
    color: #6b6560;
    letter-spacing: 0.04em;
}

/* Calculate button */
.mca-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;
}
.mca-btn-apply:hover { background: #8b7355; }

/* ── Stage wrap ─────────────────────────────────────────────────────────────── */
.mca-stage-wrap {
    padding: 1.4rem 1.6rem 4rem;
}

/* ── Blank prompt ───────────────────────────────────────────────────────────── */
.mca-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;
}
.mca-blank-prompt svg { opacity: 0.5; }

/* ── Visualiser ─────────────────────────────────────────────────────────────── */
.mca-visualiser {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.mca-design-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: left top;
}
.mca-dim-overlay {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(242, 237, 230, 0.72);
    pointer-events: none;
    z-index: 2;
}
.mca-highlight-box {
    position: absolute;
    top: 0;
    border: 2px solid #2c2a27;
    pointer-events: none;
    z-index: 3;
}
.mca-highlight-box::before,
.mca-highlight-box::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border-color: #2c2a27;
    border-style: solid;
}
.mca-highlight-box::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.mca-highlight-box::after  { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.mca-strips-svg {
    position: absolute;
    top: 0;
    pointer-events: none;
    z-index: 4;
    overflow: visible;
}
.mca-strip-labels {
    position: absolute;
    top: 0;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}
.mca-strip-label {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6px;
    gap: 2px;
    overflow: hidden;
}
.mca-strip-num {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #aacc00;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
}
.mca-strip-cm {
    font-size: 0.58rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    white-space: nowrap;
}

/* ── Dimension arrows & labels ──────────────────────────────────────────────── */
.mca-arrow { width: 0; height: 0; border: 4px solid transparent; flex-shrink: 0; }
.mca-arrow-left  { border-right-color: #555; }
.mca-arrow-right { border-left-color:  #555; }
.mca-dim-line-h  { background: #555; height: 1px; flex: 1; }
.mca-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;
}
.mca-dim-width {
    position: absolute;
    bottom: -1.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    pointer-events: none;
    z-index: 5;
}
.mca-design-width-label {
    position: absolute;
    bottom: -3.4rem;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    pointer-events: none;
    z-index: 5;
}
.mca-design-width-label .mca-dim-value {
    color: #b5afa6;
    font-size: 0.64rem;
}

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

/* ── Error message ──────────────────────────────────────────────────────────── */
.mca-error {
    display: none;
    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;
}

/* ── Price placeholder ──────────────────────────────────────────────────────── */
.mca-price-placeholder {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    color: #6b6560;
    letter-spacing: 0.03em;
}

/* ── Price note (after calculating) ────────────────────────────────────────── */
.mca-price-note {
    font-size: 0.78rem;
    font-weight: 300;
    color: #6b6560;
    letter-spacing: 0.03em;
}

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