/* Sticker Price Calculator - Frontend Styles */

.spc-calculator {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.spc-field {
    margin-bottom: 25px;
}

.spc-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.spc-label .required {
    color: #e74c3c;
}

.spc-help {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    font-style: italic;
}

/* Shape Selection */
.spc-shape-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.spc-shape-option {
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
    min-width: 100px;
}

.spc-shape-option:hover {
    border-color: #999;
}

.spc-shape-option.selected {
    border-color: #f5c518;
    background: #fffef5;
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.3);
}

.spc-shape-option img {
    max-width: 80px;
    max-height: 80px;
    display: block;
    margin: 0 auto 8px;
}

.spc-shape-placeholder {
    width: 80px;
    height: 80px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 12px;
    color: #999;
    border-radius: 4px;
}

.spc-shape-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Size Selection */
.spc-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spc-size-option {
    cursor: pointer;
}

.spc-size-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spc-size-option span {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 14px;
}

.spc-size-option:hover span {
    border-color: #999;
}

.spc-size-option input:checked + span {
    border-color: #f5c518;
    background: #fffef5;
    font-weight: 600;
}

/* Quantity Selection */
.spc-quantity-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spc-quantity-option {
    cursor: pointer;
}

.spc-quantity-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spc-quantity-option span {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.spc-quantity-option:hover span {
    border-color: #999;
}

.spc-quantity-option input:checked + span {
    border-color: #f5c518;
    background: #fffef5;
    font-weight: 600;
}

/* Lamination Selection */
.spc-lamination-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spc-lamination-option {
    cursor: pointer;
}

.spc-lamination-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spc-lamination-option > span {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 14px;
}

.spc-lamination-option:hover > span {
    border-color: #999;
}

.spc-lamination-option input:checked + span {
    border-color: #f5c518;
    background: #fffef5;
    font-weight: 600;
}

.spc-lamination-cost {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* Price Display */
.spc-price-display {
    background: #fff;
    border: 2px solid #f5c518;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.spc-unit-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.spc-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.spc-total-price span {
    color: #2ecc71;
}

/* Validation */
.spc-field.spc-error .spc-shape-options,
.spc-field.spc-error .spc-size-options,
.spc-field.spc-error .spc-quantity-options {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .spc-shape-options {
        gap: 10px;
    }
    
    .spc-shape-option {
        min-width: calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
    }
    
    .spc-shape-option img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .spc-size-option span,
    .spc-quantity-option span {
        padding: 8px 12px;
        font-size: 13px;
    }
}
