/* ========================================
   Etiketon Fiyat Hesaplayıcı - Frontend
   ======================================== */

/* Calculator Wrapper */
.etiketon-calculator-wrap {
    margin: 20px 0;
    padding: 0;
}

/* Two Column Layout - Equal Height */
.etiketon-two-col-layout {
    display: flex;
    gap: 20px;
    align-items: stretch; /* Equal height columns */
}

.etiketon-col-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.etiketon-col-right {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Right Column Placeholder */
.etiketon-right-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: #fafafa;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
}

.etiketon-right-placeholder p {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}

/* Label Preview - fills right column */
.etiketon-label-preview {
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    transition: opacity 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 1;
}

.etiketon-label-svg {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Field Group */
.etiketon-field {
    margin-bottom: 14px;
}

.etiketon-field:last-child {
    margin-bottom: 0;
}

.etiketon-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.etiketon-field select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.etiketon-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.etiketon-field select:hover {
    border-color: #999;
}

/* ========================================
   Price Display - Full Width Below
   ======================================== */
.etiketon-price-display {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f4 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 16px;
}

.etiketon-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.etiketon-price-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.etiketon-total-price .etiketon-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #28a745;
    transition: transform 0.3s ease;
}

.etiketon-unit-price {
    border-top: 1px solid #d4edda;
    margin-top: 6px;
    padding-top: 8px;
}

.etiketon-unit-price .etiketon-price-value {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.etiketon-tax-note {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    font-style: italic;
    text-align: right;
}

/* TL Equivalent (secondary currency) */
.etiketon-tl-equiv {
    display: inline-block;
    font-size: 0.7em;
    color: #888;
    font-weight: 500;
    margin-left: 4px;
}

.etiketon-total-price .etiketon-tl-equiv {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Price Flash Animation */
.etiketon-price-flash {
    animation: etiketon-flash 0.4s ease;
}

@keyframes etiketon-flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); color: #1e7e34; }
    100% { transform: scale(1); }
}

/* Price Placeholder */
.etiketon-price-placeholder {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Disabled Add to Cart */
button.single_add_to_cart_button.etiketon-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sales Type Radio Group */
.etiketon-radio-group {
    display: flex;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.etiketon-radio {
    flex: 1;
    cursor: pointer;
    margin: 0 !important;
}

.etiketon-radio input[type="radio"] {
    display: none;
}

.etiketon-radio span {
    display: block;
    padding: 10px 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #fff;
    transition: all 0.3s ease;
    border-right: 1px solid #e0e0e0;
}

.etiketon-radio:last-child span {
    border-right: none;
}

.etiketon-radio input[type="radio"]:checked + span {
    background: #2271b1;
    color: #fff;
}

/* Rulo Info Badge */
.etiketon-rulo-info {
    margin-top: 6px;
    padding: 6px 10px;
    background: #e8f4fd;
    border-radius: 6px;
    font-size: 12px;
    color: #0073aa;
    font-weight: 500;
}

.etiketon-rulo-warning {
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 12px;
    color: #856404;
}

/* Quantity Info */
.etiketon-qty-info {
    font-size: 13px;
    color: #555;
    padding: 6px 0;
    margin-bottom: 6px;
    border-bottom: 1px solid #d4edda;
    font-weight: 500;
    text-align: center;
}

/* Minimum Order Warning */
.etiketon-min-warning {
    padding: 6px 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 12px;
    color: #856404;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
    .etiketon-two-col-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .etiketon-col-right {
        flex: none;
        width: 100%;
    }
    
    .etiketon-label-preview {
        flex: none;
    }
    
    .etiketon-label-svg {
        max-width: 200px;
    }
    
    .etiketon-total-price .etiketon-price-value {
        font-size: 22px;
    }
    
    .etiketon-right-placeholder {
        min-height: 100px;
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .etiketon-field select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .etiketon-radio span {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .etiketon-label-svg {
        max-width: 160px;
    }
    
    .etiketon-total-price .etiketon-price-value {
        font-size: 20px;
    }
}

/* Custom Size Request */
.etiketon-custom-size {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
}

.etiketon-custom-link {
    display: inline-block;
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.etiketon-custom-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.etiketon-custom-size-panel {
    margin-top: 10px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e0e4f0;
    border-radius: 10px;
    padding: 14px;
}

.etiketon-custom-title {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.etiketon-contact-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.etiketon-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.etiketon-contact-item:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
    transform: translateX(3px);
}

.etiketon-contact-item.etiketon-wp {
    border-color: #25d366;
    color: #128c7e;
}

.etiketon-contact-item.etiketon-wp:hover {
    background: #e8faf0;
    border-color: #128c7e;
    color: #075e54;
}

.etiketon-contact-note {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-style: italic;
}
