/* Zebra Shadin Curtain Calculator Styles */
.zb-dimensions-wrapper {
    background: #fbfbfc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 18px 0 22px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.zb-dimensions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 10px;
}

.zb-dimensions-header .zb-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zb-size-guide-btn {
    background: transparent;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.zb-size-guide-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.zb-inputs-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.zb-field-group {
    flex: 1;
}

.zb-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}

.zb-field-group input.input-text {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    direction: ltr;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.zb-field-group input.input-text:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.zb-calc-summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.zb-calc-item {
    font-size: 13px;
    color: #64748b;
}

.zb-calc-item .zb-value {
    font-weight: 700;
    color: #0f172a;
    margin-right: 4px;
}

.zb-calc-item.zb-highlight .zb-final-price {
    font-size: 16px;
    color: #16a34a;
}

.zb-note {
    font-size: 11px;
    color: #94a3b8;
    margin: 8px 0 0 0;
    text-align: right;
}

/* Modal */
.zb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.zb-modal-content {
    background: #ffffff;
    max-width: 520px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    direction: rtl;
    animation: zbFadeIn 0.25s ease-out;
}

@keyframes zbFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.zb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.zb-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.zb-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.zb-modal-body {
    padding: 20px;
    line-height: 1.8;
    font-size: 14px;
    color: #334155;
}

.zb-guide-step {
    margin-bottom: 14px;
}

.zb-guide-step h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #0f172a;
}

.zb-guide-alert {
    background: #fef3c7;
    border-right: 4px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
    margin-top: 14px;
}
