/* ==========================================================
   WSC Frontend – Sticker Calculator styles
   ========================================================== */

.wsc-calculator {
    background: #f8f9fb;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0 20px;
    font-size: 14px;
    color: #333;
}

/* ---- Material badge ---- */
.wsc-material-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
}

/* ---- Dimensions block ---- */
.wsc-dimensions-block {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.wsc-dim-field {
    flex: 1;
    min-width: 120px;
}

.wsc-dim-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
}

.wsc-dim-hint {
    font-weight: 400;
    color: #888;
    font-size: 11px;
    margin-left: 4px;
}

.wsc-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .2s;
}

.wsc-input-wrap:focus-within {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,.12);
}

.wsc-input-wrap input[type="number"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 8px 10px;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    background: transparent;
    -moz-appearance: textfield;
}

.wsc-input-wrap input[type="number"]::-webkit-inner-spin-button,
.wsc-input-wrap input[type="number"]::-webkit-outer-spin-button { opacity: .5; }

.wsc-unit {
    padding: 0 10px;
    color: #888;
    font-size: 13px;
    border-left: 1px solid #e2e6ea;
    background: #f4f5f6;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.wsc-dim-sep {
    font-size: 24px;
    color: #aaa;
    padding-bottom: 8px;
    align-self: flex-end;
}

.wsc-field-error {
    display: block;
    color: #c0392b;
    font-size: 11px;
    margin-top: 4px;
    min-height: 16px;
}

/* ---- Enter hint ---- */
.wsc-enter-hint {
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 13px;
    margin-top: 12px;
    padding: 8px;
    border: 1px dashed #ddd;
    border-radius: 6px;
}

/* ---- Price result box ---- */
.wsc-price-result {
    background: #fff;
    border: 1.5px solid #007cba;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.wsc-price-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.wsc-price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
}

.wsc-price-value {
    font-size: 26px;
    font-weight: 700;
    color: #c0392b;
}

.wsc-price-unit-row {
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.wsc-price-unit-row strong {
    color: #333;
}

/* ---- Alternatives table ---- */
.wsc-alternatives {
    margin-bottom: 12px;
}

.wsc-alt-title {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #555;
    margin-bottom: 8px;
}

.wsc-alt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wsc-alt-table thead th {
    background: #f2f4f6;
    padding: 6px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #dde2e7;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
}

.wsc-alt-table tbody tr:hover { background: #fafbfd; }

.wsc-alt-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.wsc-alt-row-current td { background: #eaf6ff; font-weight: 600; }
.wsc-alt-row-current .wsc-alt-qty { color: #007cba; }

.wsc-alt-savings {
    color: #27ae60;
    font-weight: 600;
    font-size: 12px;
}

/* ---- Info row ---- */
.wsc-info-row {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #777;
    padding-top: 8px;
    flex-wrap: wrap;
}

.wsc-info-row strong { color: #444; }

/* ---- Section blocks ---- */
.wsc-section-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8eaed;
}

.wsc-block-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
    color: #333;
}

/* ---- Color picker ---- */
.wsc-color-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #ced4da;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color .2s;
    user-select: none;
    font-size: 13px;
}

.wsc-color-trigger:hover,
.wsc-color-trigger:focus { border-color: #007cba; outline: none; }

.wsc-color-preview-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.wsc-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    background: #fff;
    border: 1px solid #dde;
    border-radius: 8px;
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.wsc-color-swatch-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .1s, border-color .15s;
    position: relative;
    flex-shrink: 0;
}

.wsc-color-swatch-btn:hover {
    transform: scale(1.15);
    border-color: #333;
    z-index: 2;
}

.wsc-color-swatch-btn.selected {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,.25);
}

.wsc-color-swatch-btn::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.wsc-color-swatch-btn:hover::after { opacity: 1; }

/* ---- Image upload ---- */
.wsc-upload-area {
    position: relative;
}

.wsc-upload-preview-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.wsc-upload-preview-wrap img {
    display: block;
    max-width: 140px;
    max-height: 140px;
    border-radius: 6px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.wsc-remove-image {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    padding: 0;
}

.wsc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px dashed #007cba;
    color: #007cba;
    border-radius: 6px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s;
}

.wsc-upload-btn:hover { background: #eaf6ff; }

.wsc-upload-status {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: #555;
}

.wsc-upload-status.ok  { color: #27ae60; }
.wsc-upload-status.err { color: #c0392b; }

/* ---- Design option ---- */
.wsc-design-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    margin-bottom: 6px;
    background: #fff;
    border: 1.5px solid #e2e6ea;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s;
    font-size: 13px;
}

.wsc-design-option:hover { border-color: #007cba; }
.wsc-design-option input[type="radio"] { margin-top: 2px; flex-shrink: 0; }

.wsc-design-option input[type="radio"]:checked + span { font-weight: 600; }
.wsc-design-fee-badge {
    background: #27ae60;
    color: #fff;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 12px;
    margin-left: 6px;
}

/* ---- Cart thumb ---- */
.wsc-cart-thumb { border-radius: 4px; }

/* ==========================================================
   WSC – Shape selector cards
   ========================================================== */

.wsc-shape-selector {
    margin-bottom: 18px;
}

.wsc-shape-cards {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.wsc-shape-card {
    flex: 1;
    min-width: 130px;
    max-width: 200px;
    background: #fff;
    border: 2px solid #dde2e8;
    border-radius: 10px;
    padding: 14px 10px 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color .18s, box-shadow .18s;
    position: relative;
    user-select: none;
    outline: none;
}

.wsc-shape-card:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,124,186,.15);
}

.wsc-shape-card.wsc-shape-active {
    border-color: #007cba;
    background: #eaf5ff;
    box-shadow: 0 0 0 3px rgba(0,124,186,.18);
}

.wsc-shape-card-icon svg {
    width: 72px;
    height: 54px;
    display: block;
    margin: 0 auto 8px;
}

.wsc-shape-active .wsc-shape-card-icon svg rect,
.wsc-shape-active .wsc-shape-card-icon svg ellipse,
.wsc-shape-active .wsc-shape-card-icon svg path {
    fill: #bfe3f7;
    stroke: #007cba;
}

.wsc-shape-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
}

.wsc-shape-active .wsc-shape-card-label { color: #007cba; }

.wsc-shape-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    display: none;
}

.wsc-shape-active .wsc-shape-card-check { display: block; }

/* Cut description */
.wsc-cut-desc-block {
    margin: 14px 0;
    padding: 14px;
    background: #fff9f0;
    border: 1px solid #fbd9a2;
    border-radius: 8px;
}

.wsc-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #ced4da;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 72px;
    margin-top: 6px;
    transition: border-color .2s;
}

.wsc-textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,124,186,.12);
}

.wsc-cut-note {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Kontajner */
.wsc-delivery-options {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

/* Box štýl */
.wsc-option-box {
    border: 2px solid #ddd;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    background: #fafafa;
}

/* Hover efekt */
.wsc-option-box:hover {
    border-color: #999;
    background: #f0f0f0;
}

/* Skryť natívny radio button */
.wsc-option-box input[type="radio"] {
    display: none;
}

/* Vybraný stav */
.wsc-option-box input[type="radio"]:checked + span {
    font-weight: 600;
    color: #000;
}

/* Ikonka + text */
.wsc-option-box span {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Badge pre expres */
.wsc-express-note {
    background: #ff9800;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 4px;
}
