/* exhilarator-109.css */

#configurator-wrapper {
    max-width: 1200px;
    width: 95%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    margin: 20px auto;
    border: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#configurator-wrapper #boat-viewer {
    flex: 2 1 600px;
    min-width: 400px;
    position: relative !important;
    height: 0;
    padding-top: 56.25%;
    background-color: #f4f7f6;
}

#configurator-wrapper #boat-viewer br {
    display: none !important;
}

#configurator-wrapper #boat-viewer img.boat-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

#configurator-wrapper #boat-viewer img.boat-layer.active {
    opacity: 1;
    visibility: visible;
}

#configurator-wrapper #boat-viewer img.boat-layer.base {
    opacity: 1;
    visibility: visible;
}

#configurator-wrapper #controls {
    flex: 1 1 320px;
    min-width: 300px;
    padding: 30px;
    background: #fdfdfd;
    border-left: 1px solid #eee;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#configurator-wrapper #controls h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    display: inline-block;
    font-size: 1.4rem;
}

#configurator-wrapper #controls h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#configurator-wrapper .selection-name {
    font-weight: 400;
    color: #007bff;
    text-transform: none;
    font-size: 0.9rem;
}

#configurator-wrapper .disclaimer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
    font-style: italic;
}

#save-pdf-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: auto;
    margin-bottom: 15px;
}

#save-pdf-btn:hover {
    background-color: #218838;
}

#save-pdf-btn:disabled {
    background-color: #94d3a2;
    cursor: not-allowed;
}

#configurator-wrapper .option-group {
    margin-bottom: 0;
}

#configurator-wrapper .swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#configurator-wrapper .swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

#configurator-wrapper .swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#configurator-wrapper .swatch.active {
    box-shadow: 0 0 0 4px #007bff;
}

#configurator-wrapper .style-swatch {
    flex: 1 1 120px;
    height: 34px;
    border-radius: 6px;
    border: 2px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    background: #fff;
    min-width: 100px;
}

#configurator-wrapper .swatches[data-controls="stripe-style"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

#configurator-wrapper .style-swatch {
    width: 100%;
}

#configurator-wrapper .style-swatch:hover {
    border-color: #999;
}

#configurator-wrapper .style-swatch.active {
    border-color: #007bff;
    color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#configurator-wrapper .stripe-controls-group {
    display: none;
    flex-direction: column;
    gap: 20px;
    border-left: 3px solid #007bff;
    padding-left: 15px;
    margin-top: 10px;
}

#configurator-wrapper .stripe-controls-group.active {
    display: flex;
}

#print-summary {
    display: none;
    width: 100%;
}

#print-summary h2 {
    margin-top: 0;
    color: #222;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 10px;
    font-size: 28px;
    margin-bottom: 20px;
    width: 100%;
}

#print-summary .print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

#print-summary .print-item {
    font-size: 16px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 5px solid #007bff;
    margin-bottom: 0;
}

#print-summary .print-label {
    font-weight: bold;
    color: #666;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

#print-summary .print-value {
    font-weight: bold;
    font-size: 18px;
    color: #222;
    display: block;
}

#print-summary .print-footer {
    margin-top: 40px;
    font-size: 12px;
    color: #999;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    width: 100%;
}

@media(max-width:800px) {
    #configurator-wrapper {
        flex-direction: column;
        width: 100%;
        margin: 10px 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow-x: hidden;
    }
    #configurator-wrapper #boat-viewer {
        flex: 1 1 auto;
        min-width: 100%;
        padding-top: 60%;
    }
    #configurator-wrapper #controls {
        flex: 1 1 auto;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding: 20px;
        max-height: 50vh;
        overflow-y: auto;
    }
    #configurator-wrapper #controls h3 {
        font-size: 1.2rem;
    }
    #configurator-wrapper .swatches[data-controls="stripe-style"] {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page { margin: 0; size: auto; }
    html, body { width: 100%; height: 100%; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
    body * { visibility: hidden; height: 0; }
    #configurator-wrapper, #configurator-wrapper * { visibility: visible; height: auto; }
    #configurator-wrapper { position: fixed; left: 0; top: 0; width: 100%; height: 100%; margin: 0; padding: 40px; box-sizing: border-box; border: none; box-shadow: none; flex-direction: column; z-index: 99999; background: white; }
    #configurator-wrapper #boat-viewer { flex: none; width: 100%; height: auto; padding-top: 56.25%; page-break-inside: avoid; border: 1px solid #eee; border-radius: 8px; margin-bottom: 30px; }
    #configurator-wrapper #controls { flex: none; width: 100%; padding: 0; border: none; overflow: visible; }
    .swatches, #save-pdf-btn, .disclaimer, #configurator-wrapper #controls h3, .option-group { display: none !important; }
    #print-summary { display: block !important; }
}

#configurator-wrapper .swatch[data-color="canary-yellow"] { background-color: #FFEF00; }
#configurator-wrapper .swatch[data-color="flame-red"] { background-color: #E42217; }
#configurator-wrapper .swatch[data-color="dark-gray"] { background-color: #A9A9A9; }
#configurator-wrapper .swatch[data-color="harbor-blue"] { background-color: #4E798E; }
#configurator-wrapper .swatch[data-color="kelly-green"] { background-color: #4CBB17; }
#configurator-wrapper .swatch[data-color="lime-green"] { background-color: #32CD32; }
#configurator-wrapper .swatch[data-color="medium-blue"] { background-color: #0000CD; }
#configurator-wrapper .swatch[data-color="orange"] { background-color: #FFA500; }
#configurator-wrapper .swatch[data-color="sea-foam-green"] { background-color: #9FE2BF; }
#configurator-wrapper .swatch[data-color="sport-red"] { background-color: #D63230; }
#configurator-wrapper .swatch[data-color="whaler-blue"] { background-color: #004D99; }
#configurator-wrapper .swatch[data-color="white"] { background-color: #f8f9fa; border: 3px solid #dee2e6; }