/**
 * Nine Optic Direct Checkout Styles
 * Modern design with Grey, Black, and Purple theme
 * Cross-browser compatible with vendor prefixes
 */

/* Variables */
:root {
    --noc-primary: #8b5cf6;
    --noc-primary-dark: #7c3aed;
    --noc-primary-light: #a78bfa;
    --noc-success: #10b981;
    --noc-error: #ef4444;
    --noc-text: #1f2937;
    --noc-text-light: #6b7280;
    --noc-border: #e5e7eb;
    --noc-bg: #ffffff;
    --noc-bg-light: #f9fafb;
}

/* Box sizing fix */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.noc-checkout-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 0;
    font-family: 'SolaimanLipi', Arial, sans-serif;
}

.noc-checkout-wrapper * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Headline Banner */
.noc-headline-banner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 12px;
    background: #60a5fa;
    background: -webkit-gradient(linear, left top, right bottom, from(#60a5fa), to(#3b82f6));
    background: -webkit-linear-gradient(top left, #60a5fa 0%, #3b82f6 100%);
    background: -moz-linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    background: -o-linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px 12px 0 0;
    font-size: 16px;
    font-weight: 600;
    -webkit-box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    -moz-box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#noc-checkout-form {
    background: #f3f4f6;
    background: -webkit-gradient(linear, left top, right bottom, from(#f3f4f6), to(#e5e7eb));
    background: -webkit-linear-gradient(top left, #f3f4f6 0%, #e5e7eb 100%);
    background: -moz-linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    background: -o-linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 0 0 12px 12px;
    padding: 32px 24px;
    -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid #d1d5db;
    border-top: none;
    position: relative;
    overflow: hidden;
}

#noc-checkout-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #8b5cf6;
    background: -webkit-gradient(linear, left top, right top, from(#8b5cf6), to(#7c3aed));
    background: -webkit-linear-gradient(left, #8b5cf6 0%, #7c3aed 100%);
    background: -moz-linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
    background: -o-linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.noc-field-group {
    margin-bottom: 20px;
}

.noc-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--noc-text);
}

.noc-label-text {
    font-size: 15px;
}

.noc-required {
    color: var(--noc-error);
    margin-left: 3px;
}

/* Select Dropdown */
.noc-select {
    width: 100%;
    max-width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    color: var(--noc-text);
    background-color: white;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%238b5cf6'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.noc-select:focus {
    outline: none;
    border-color: var(--noc-primary);
    -webkit-box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    -moz-box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.noc-select:hover {
    border-color: var(--noc-primary-light);
}

.noc-delivery-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--noc-text-light);
    font-style: italic;
    padding: 8px 12px;
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid var(--noc-primary);
    border-radius: 4px;
}

/* Input Fields */
.noc-input,
.noc-textarea,
.noc-readonly-field {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    color: var(--noc-text);
    background-color: white;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.noc-input:focus,
.noc-textarea:focus {
    outline: none;
    border-color: var(--noc-primary);
    -webkit-box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    -moz-box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.noc-readonly-field {
    background-color: #f3f4f6;
    color: var(--noc-text-light);
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.noc-textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
}

/* File Upload */
.noc-file-upload {
    position: relative;
}

.noc-file-input {
    display: none;
}

.noc-file-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    background-color: white;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.noc-file-label:hover {
    border-color: var(--noc-primary);
    background-color: rgba(139, 92, 246, 0.02);
}

.noc-file-icon {
    font-size: 24px;
}

.noc-file-text {
    font-size: 14px;
    color: var(--noc-text-light);
}

.noc-file-name {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    color: var(--noc-primary);
    font-weight: 600;
}

/* Customer Info Section */
.noc-customer-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 3px solid #d1d5db;
}

.noc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.noc-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--noc-primary);
    border-radius: 2px;
}

/* Order Summary */
.noc-order-summary {
    margin-top: 24px;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    border: 2px solid #d1d5db;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.noc-summary-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    color: var(--noc-text);
}

.noc-summary-row:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.noc-summary-row.noc-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 3px solid var(--noc-primary);
    font-size: 20px;
    font-weight: 800;
    color: var(--noc-primary);
}

.noc-free {
    color: var(--noc-success);
    font-weight: 700;
    font-size: 14px;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Instruction */
.noc-instruction {
    margin: 24px 0;
    padding: 16px 20px;
    background: rgba(139, 92, 246, 0.08);
    background: -webkit-gradient(linear, left top, right bottom, from(rgba(139, 92, 246, 0.08)), to(rgba(124, 58, 237, 0.08)));
    background: -webkit-linear-gradient(top left, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    background: -moz-linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    background: -o-linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-left: 5px solid var(--noc-primary);
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
    -moz-box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.noc-instruction p {
    margin: 0;
    font-size: 15px;
    color: var(--noc-text);
    font-weight: 500;
}

/* Submit Button with Price */
.noc-submit-btn {
    width: 100%;
    padding: 0;
    background: #8b5cf6;
    background: -webkit-gradient(linear, left top, right bottom, from(#8b5cf6), to(#7c3aed));
    background: -webkit-linear-gradient(top left, #8b5cf6 0%, #7c3aed 100%);
    background: -moz-linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    background: -o-linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    -moz-box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    overflow: hidden;
    position: relative;
}

.noc-btn-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 18px 28px;
}

.noc-btn-text {
    font-size: 18px;
}

.noc-btn-price {
    font-size: 22px;
    font-weight: 800;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 8px;
}

.noc-btn-loader {
    display: block;
    padding: 18px 28px;
    text-align: center;
}

.noc-submit-btn:hover:not(:disabled) {
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    -moz-box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.noc-submit-btn:active:not(:disabled) {
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    transform: translateY(-1px);
}

.noc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    -webkit-transform: none;
    -moz-transform: none;
    -o-transform: none;
    transform: none;
}

/* Responsive Design */
@media (max-width: 640px) {
    .noc-headline-banner {
        font-size: 14px;
        padding: 14px 16px;
        gap: 8px;
    }
    
    #noc-checkout-form {
        padding: 24px 16px;
    }
    
    .noc-field-group {
        margin-bottom: 18px;
    }
    
    .noc-section-title {
        font-size: 16px;
    }
    
    .noc-submit-btn {
        font-size: 16px;
    }
    
    .noc-btn-content {
        padding: 16px 20px;
    }
    
    .noc-btn-text {
        font-size: 16px;
    }
    
    .noc-btn-price {
        font-size: 18px;
        padding: 4px 12px;
    }
    
    .noc-summary-row.noc-total {
        font-size: 18px;
    }
}

/* Hide "Both" option initially */
#noc-color-select option.noc-both-option {
    display: none;
}
