.vault-selector-container {
    font-family: 'Lora', serif;
    max-width: 80rem;
    /* Updated to 80rem */
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border: 1px solid #e0e0e0;
}

.vault-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
}

.vault-tab {
    flex: 1;
    padding: 16px 24px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    background: white;
}

.vault-tab.active {
    border-bottom: 3px solid #333;
    /* Or primary brand color */
    background: white;
    color: #000;
}

.vault-tab.inactive {
    background: #d8d8d8;
    /* Light gray for inactive */
    color: #000000;
    /* Contrast Black */
    border-bottom: 1px solid #ccc;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.vault-content {
    display: flex;
    padding: 40px;
    gap: 40px;
    flex-wrap: wrap;
    /* Responsive */
}

/* Left Side - Visual */
.vault-visual {
    flex: 2;
    position: relative;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vault-image-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.vault-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Right Side - Controls */
.vault-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 250px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    /* Center align controls */
}

.thumbnail-container {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 8px;
    width: fit-content;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
}

.thumbnail-image {
    width: 180px;
    /* Increased slightly for better visibility */
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.thumbnail-caption {
    font-size: 0.85rem;
    color: #1a1a1a;
    margin-top: 6px;
    text-align: center;
    font-weight: 500;
    font-family: 'Lora', serif;
}

.control-label {
    font-weight: 600;
    color: #333;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    border: 1px solid #333;
    border-radius: 50px;
    /* Full pill shape */
    overflow: hidden;
    /* Keeps children inside rounded corners */
    width: 240px;
    /* Slightly wider to accommodate padding/look */
    padding: 4px;
    /* Inner spacing for the 'floating' pill effect */
    background: white;
    /* Ensure background is white */
    position: relative;
}

.toggle-option {
    flex: 1;
    padding: 10px 16px;
    /* Increased vertical padding */
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    /* Slightly larger text */
    transition: all 0.3s ease;
    border-radius: 40px;
    /* Inner pill shape */
    font-family: 'Lora', serif;
    font-weight: 500;
    z-index: 1;
}

.toggle-option.active {
    background: #8b7d6b;
    /* Brownish active color */
    color: white;
}

.toggle-option:not(.active) {
    background: transparent;
    color: #1a1a1a;
}

.toggle-option:not(.active):hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Size Selector */
.size-selector {
    width: 100%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.size-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: #000000;
    /* Explicitly black */
}

.size-option:hover {
    border-color: #8b7d6b;
}

.size-option.selected {
    background: #8b7d6b;
    color: white;
    border-color: #8b7d6b;
}

.radio-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #8b7d6b;
    /* The dot color when unselected in design looks brownish too */
}

.size-option.selected .radio-circle {
    background: white;
    border-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .vault-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .vault-visual {
        min-width: unset;
        /* Remove min-width constraint */
        width: 100%;
    }

    .vault-controls {
        min-width: unset;
        /* Remove min-width constraint */
        width: 100%;
    }

    .vault-tabs {
        flex-wrap: wrap;
        /* Allow tabs to stack if really needed, though unlikely for 2 tabs */
    }

    .vault-tab {
        padding: 12px 10px;
        /* Reduce padding on small screens */
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .vault-content {
        padding: 10px;
        /* Minimize padding */
    }

    .toggle-switch {
        width: 100%;
        /* Full width scaling */
    }

    .size-selector {
        width: 100%;
        max-width: 100%;
    }

    .vault-tab {
        padding: 10px 5px;
    }
}
