/**
 * Optic Simple Size Guide Styles
 * Minimal, Apple-inspired design
 */

/* Floating Button - Positioned parallel to product details */
.oss-trigger {
    position: fixed;
    right: 20px;
    top: 600px;  /* Adjust this value to match your layout */
    background: linear-gradient(135deg, #007AFF, #0051D5);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    z-index: 999;
    transition: all 0.2s ease;
}

/* For very large screens, keep it relative to content */
@media (min-width: 1400px) {
    .oss-trigger {
        right: calc((100vw - 1320px) / 2 + 20px);  /* Keeps it aligned with content container */
    }
}

/* For tablets and smaller desktops */
@media (max-width: 1024px) {
    .oss-trigger {
        top: 250px;  /* Slightly higher on smaller screens */
    }
}

/* For mobile - back to bottom */
@media (max-width: 768px) {
    .oss-trigger {
        top: auto;
        bottom: 80px;  /* Above mobile add-to-cart button */
        right: 15px;
    }
}

.oss-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.4);
}

/* Instructions text - better contrast */
.oss-instruction {
    font-size: 15px;
    color: #333333;  /* Dark gray instead of light */
    margin-bottom: 20px;
    font-weight: 500;
}

.oss-instruction strong {
    color: #000000;
    font-weight: 700;
}


.oss-icon {
    width: 20px;
    height: 20px;
}

/* Modal */
.oss-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oss-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Modal content area */
.oss-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: min(500px, 90vw);
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.oss-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #e5e5e7;
}

.oss-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #000000;  /* Changed from #1d1d1f to pure black */
}

.oss-header p {
    margin: 6px 0 0;
    font-size: 15px;
    color: #666666;  /* Changed from #86868b for better contrast */
    font-weight: 500;
}


/* Close button - more visible */
.oss-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f7;
    border: 1px solid #d1d1d6;
    cursor: pointer;
    font-size: 20px;
    color: #000000;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.oss-close:hover {
    background: #e5e5e7;
    transform: rotate(90deg);
}


.oss-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}


/* Choice Cards - Much better contrast */

/* Better spacing for choices */
.oss-choices {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.oss-choice {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    text-align: left;  /* Changed from center */
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.oss-choice:hover {
    border-color: #007AFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,122,255,0.15);
    background: #f8fbff;
}

.oss-emoji {
    font-size: 32px;  /* Slightly smaller */
    flex-shrink: 0;
}

.oss-choice > div {
    flex: 1;
}

.oss-choice strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.oss-choice small {
    color: #666666;  /* Better contrast */
    font-size: 13px;
    font-weight: 500;
}


/* Inputs */
.oss-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.oss-inputs input {
    width: 90px;
    padding: 12px;
    border: 2px solid #d2d2d7;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
}

/* Face option buttons - improved */
.oss-face-btn {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    width: 100%;
    margin-bottom: 12px;
}

.oss-face-btn:hover {
    border-color: #007AFF;
    background: #f8fbff;
    transform: translateX(4px);
}

.oss-face-btn strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.oss-face-btn small {
    display: block;
    font-size: 14px;
    color: #4a4a4a;  /* Darker gray for better contrast */
    font-weight: 500;
}


/* Button improvements */
.oss-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transition: all 0.2s;
}

.oss-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.oss-btn-text {
    background: none;
    border: none;
    color: #007AFF;
    cursor: pointer;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.2s;
}

.oss-btn-text:hover {
    color: #0051D5;
}

/* Size display section */
.oss-size-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #E8F4FD 0%, #F0F8FF 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #B8D9F4;
}

.oss-size-display h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #0051D5;
}

.oss-measurements {
    font-family: 'SF Mono', Monaco, monospace;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    color: #000000;
    border: 2px solid #007AFF;
    font-size: 14px;
}

/* Stats text */
.oss-stats p {
    font-size: 15px;
    color: #333333;
    line-height: 1.5;
    margin: 12px 0;
}

/* Guarantee text improvements */
.oss-guarantees {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.oss-guarantees p {
    margin: 8px 0;
    font-size: 14px;
    color: #333333;  /* Dark gray for good contrast */
    font-weight: 500;
}

/* Measurement comparison display */
.oss-measurement-compare {
    margin-top: 12px;
    padding: 12px;
    background: #f5f5f7;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.oss-measurement-compare strong {
    color: #000;
    font-family: monospace;
    font-size: 14px;
}

/* Size Indicator - Visual display */
.oss-size-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 16px;
    background: white;
    border-radius: 12px;
}

.oss-size-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f7;
    border: 2px solid #e5e5e7;
    transition: all 0.2s;
    cursor: default;
}

.oss-size-dot span {
    font-size: 14px;
    font-weight: 600;
    color: #86868b;
}

.oss-size-dot.active {
    background: #007AFF;
    border-color: #0051D5;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.oss-size-dot.active span {
    color: white;
    font-weight: 700;
}

/* Alternative bar style if you prefer */
.oss-size-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 20px 0;
    padding: 0 10px;
}

.oss-size-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 4px;
    background: #e5e5e7;
    border-radius: 2px;
    z-index: 0;
}

.oss-size-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.oss-size-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e5e5e7;
    transition: all 0.2s;
}

.oss-size-label {
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
}

.oss-size-item.active .oss-size-marker {
    width: 28px;
    height: 28px;
    background: #007AFF;
    border-color: #007AFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

.oss-size-item.active .oss-size-label {
    color: #007AFF;
    font-weight: 700;
    font-size: 14px;
}


 

/* Fit preference radio buttons */
.oss-fit-preference {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #e5e5e7;
}

.oss-fit-options {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.oss-fit-radio {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.oss-fit-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.oss-fit-label {
    display: block;
    padding: 12px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
    background: white;
}

.oss-fit-label strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.oss-fit-label small {
    display: block;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.oss-fit-radio input:checked + .oss-fit-label {
    border-color: #007AFF;
    background: #f8fbff;
}

.oss-fit-radio:hover .oss-fit-label {
    border-color: #007AFF;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .oss-fit-options {
        flex-direction: column;
        gap: 8px;
    }
}