/* WooCommerce Extra Product Options - Pink Theme v2 */

.woo-extra-options-wrapper {
    margin: 10px 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Option Group - Smaller Spacing ===== */
.woo-extra-option-group {
    margin-bottom: 10px;
}

/* ===== Option Label ===== */
.woo-extra-option-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.woo-extra-required {
    color: #FFCAEB;
    font-size: 14px;
    margin-left: 2px;
}

.woo-extra-optional {
    color: #FFCAEB;
    font-weight: 400;
    font-size: 13px;
}

/* ===== Button Group (Size Grid) ===== */
.woo-extra-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woo-extra-button {
    position: relative;
    cursor: pointer;
}

.woo-extra-button input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.woo-extra-button-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    background-color: #fff;
    border: 2px solid #FFCAEB;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: center;
}

.woo-extra-button-label:hover {
    border-color: #FFCAEB;
    background-color: #FFF0FA;
}

.woo-extra-button input[type="radio"]:checked + .woo-extra-button-label {
    background-color: #FFCAEB;
    border-color: #FFCAEB;
    color: #fff;
}

/* ===== Dropdown (Select) ===== */
.woo-extra-select-wrapper {
    position: relative;
}

.woo-extra-select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 14px;
    color: #e8b0d4;
    background-color: #FFF0FA;
    border: 2px solid #FFCAEB;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.woo-extra-select:focus {
    outline: none;
    border-color: #FFCAEB;
}

.woo-extra-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #e8b0d4;
    font-size: 16px;
    pointer-events: none;
}

/* ===== Searchable Dropdown ===== */
.woo-extra-search-dropdown {
    position: relative;
    margin-top: 4px;
    background: #fff;
    border: 2px solid #FFCAEB;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(244, 114, 182, 0.15);
}

.woo-extra-search-box {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background-color: #FFF0FA;
    gap: 8px;
}

.woo-extra-search-icon {
    width: 20px;
    height: 20px;
    color: #e8b0d4;
    flex-shrink: 0;
}

.woo-extra-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #e8b0d4;
    outline: none;
}

.woo-extra-search-input::placeholder {
    color: #e8b0d4;
    opacity: 0.7;
}

.woo-extra-search-line {
    height: 1px;
    background: #FFCAEB;
    margin: 0 14px;
}

.woo-extra-search-options {
    max-height: 180px;
    overflow-y: auto;
}

.woo-extra-search-option {
    padding: 12px 18px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.woo-extra-search-option:hover {
    background-color: #FFF0FA;
}

.woo-extra-search-option:nth-child(even) {
    background-color: #FFF5FB;
}

/* ===== Urgent Delivery Box ===== */
.woo-extra-urgent-box {
    background: #FFF0FA;
    border: 1px solid #FFCAEB;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woo-extra-urgent-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFE8F5;
    border: 2px solid #FFCAEB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.woo-extra-urgent-icon svg {
    width: 22px;
    height: 22px;
    color: #e8b0d4;
}

.woo-extra-urgent-info {
    flex: 1;
}

.woo-extra-urgent-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
}

.woo-extra-urgent-desc {
    font-size: 12px;
    color: #666;
    margin: 0 0 2px;
}

.woo-extra-urgent-sub {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* Toggle Switch */
.woo-extra-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.woo-extra-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.woo-extra-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.woo-extra-toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.woo-extra-toggle input:checked + .woo-extra-toggle-slider {
    background-color: #FFCAEB;
}

.woo-extra-toggle input:checked + .woo-extra-toggle-slider:before {
    transform: translateX(22px);
}

/* ===== Size Chart & Fabric Link ===== */
.woo-extra-size-chart-link {
    display: block;
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #e8b0d4;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-weight: 600;
}

.woo-extra-size-chart-link:hover {
    color: #FFCAEB;
}

/* ===== Size Chart Modal ===== */
.woo-extra-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.woo-extra-modal-overlay.active {
    display: flex;
}

.woo-extra-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.woo-extra-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.woo-extra-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.woo-extra-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
    line-height: 1;
}

.woo-extra-modal-close:hover {
    color: #333;
}

.woo-extra-modal-body {
    padding: 0;
    text-align: center;
}

.woo-extra-modal-body img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
}

/* ===== Fabric Detail Box ===== */
.woo-extra-fabric-box {
    margin: 6px 0;
}

.woo-extra-fabric-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #e8b0d4;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 6px;
}

.woo-extra-fabric-toggle:hover {
    color: #FFCAEB;
}

.woo-extra-fabric-toggle .arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.woo-extra-fabric-toggle.open .arrow {
    transform: rotate(180deg);
}

.woo-extra-fabric-content {
    display: none;
    background: #FFF0FA;
    border: 1px solid #FFCAEB;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-top: 4px;
}

.woo-extra-fabric-content.open {
    display: block;
}

/* ===== Notes Field ===== */
.woo-extra-notes-group {
    margin-top: 10px;
}

.woo-extra-description-field {
    width: 100%;
    min-height: 80px;
    padding: 14px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 2px solid #FFCAEB;
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.woo-extra-description-field::placeholder {
    color: #d4a0c0;
}

.woo-extra-description-field:focus {
    outline: none;
    border-color: #FFCAEB;
}

.woo-extra-char-count {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.woo-extra-description-hint {
    font-size: 12px;
    color: #666;
    margin: 4px 0 2px;
    line-height: 1.4;
}

.woo-extra-description-usage {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin: 0;
}

/* ===== Scrollbar ===== */
.woo-extra-search-options::-webkit-scrollbar {
    width: 5px;
}

.woo-extra-search-options::-webkit-scrollbar-track {
    background: #FFF0FA;
}

.woo-extra-search-options::-webkit-scrollbar-thumb {
    background: #FFCAEB;
    border-radius: 3px;
}
