/* oDuvar — Kendi Duvarında Dene (1:1 Mimari Ölçekli Önizleyici) v2.1.0 */

.odv-wto-modal {
    position: fixed;
    inset: 0;
    z-index: 1000010;
    background: rgba(8, 24, 19, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}
.odv-wto-modal *,
.odv-wto-modal *::before,
.odv-wto-modal *::after {
    box-sizing: border-box;
}
.odv-wto-modal[hidden],
.odv-wto-modal [hidden] {
    display: none !important;
}
.odv-wto-sheet {
    background: #ffffff;
    color: #13382e;
    width: 100%;
    max-width: min(760px, 100vw);
    max-height: 95vh;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 20px;
    border: 2px solid #114639;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
}
.odv-wto__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #e2eee8;
    background: #f8fbf9;
    border-radius: 18px 18px 0 0;
}
.odv-wto__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.odv-wto__title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #114639 !important;
    line-height: 1.2 !important;
}
.odv-wto__privacy {
    font-size: 10.5px;
    color: #537066;
    font-weight: 600;
    line-height: 1.25;
}
.odv-wto__head-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.odv-wto__studio-link {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: #eaf4ef !important;
    border: 1px solid #bdd6cb !important;
    color: #114639 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.odv-wto__studio-link:hover {
    background: #114639 !important;
    color: #E2F11E !important;
    border-color: #114639 !important;
}
.odv-wto__close {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    border: 1.5px solid #cde0d8 !important;
    background: #ffffff !important;
    color: #114639 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0;
}
.odv-wto__close:hover {
    background: #114639 !important;
    color: #E2F11E !important;
}

/* Canvas Stage */
.odv-wto__stage {
    position: relative;
    background: #eae6df;
    width: 100%;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}
#odvTryonCanvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 48vh;
    object-fit: contain;
    margin: 0 auto;
    cursor: grab;
}
#odvTryonCanvas:active {
    cursor: grabbing;
}
.odv-wto__top-Overlay {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}
.odv-wto__upload-lbl,
.odv-wto__reset-bg {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #114639 !important;
    color: #E2F11E !important;
    border: 1.5px solid rgba(226, 241, 30, 0.65) !important;
    border-radius: 999px !important;
    padding: 7px 13px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    white-space: nowrap;
}
.odv-wto__upload-lbl:hover {
    background: #0b3127 !important;
    color: #ffffff !important;
}
.odv-wto__reset-bg {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #114639 !important;
    border-color: #114639 !important;
    padding: 6px 11px !important;
    font-size: 11px !important;
}
.odv-wto__hint {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 70, 57, 0.85);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.4s ease;
}
.odv-wto__hint.is-faded {
    opacity: 0;
}

/* Controls Area */
.odv-wto__controls {
    padding: 10px 14px 9px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: #ffffff;
}
.odv-wto__row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.odv-wto__lbl {
    font-size: 11px;
    font-weight: 800;
    color: #46635a;
    width: 52px;
    flex-shrink: 0;
}
.odv-wto__chips {
    flex: 1;
    min-width: 0;
}
.odv-wto__chips--rooms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}
.odv-wto__chips--frames {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}
.odv-wto__chips--sizes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
}
.odv-wto__chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 5px 4px !important;
    min-height: 31px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cfe1da !important;
    background: #f7faf8 !important;
    color: #163a30 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    line-height: 1.1 !important;
    text-transform: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.odv-wto__chip.is-active {
    background: #114639 !important;
    border-color: #114639 !important;
    color: #ffffff !important;
}
.odv-wto__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}
.odv-wto__dot--bej { background: linear-gradient(135deg, #f4d2a4, #cfa065); }
.odv-wto__dot--siyah { background: #181a1b; }
.odv-wto__dot--beyaz { background: #ffffff; }
.odv-wto__dot--cercevesiz { background: repeating-linear-gradient(45deg, #e5ece8, #e5ece8 3px, #ffffff 3px, #ffffff 6px); }

.odv-wto__zoom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f8f5;
    border: 1px solid #dcebe3;
    border-radius: 8px;
    padding: 5px 10px;
}
.odv-wto__zoom-row span {
    font-size: 11px;
    font-weight: 700;
    color: #245043;
    white-space: nowrap;
}
#odvTryonZoom {
    flex: 1;
    min-width: 0;
    accent-color: #114639;
    cursor: pointer;
    margin: 0;
}

/* Footer Conversion & Viral Share Bar */
.odv-wto__foot {
    padding: 10px 14px 12px;
    background: #f3f9f6;
    border-top: 1px solid #d7e7e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-radius: 0 0 18px 18px;
}
.odv-wto__price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.odv-wto__price-main {
    font-size: 15px;
    font-weight: 900;
    color: #114639;
    line-height: 1.2;
}
.odv-wto__ship-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: #156046;
}
.odv-wto__ship-tag.is-paid {
    color: #7d5b20;
}
.odv-wto__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.odv-wto__act-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-transform: none !important;
    line-height: 1.2 !important;
}
.odv-wto__act-btn--share {
    background: #ffffff !important;
    color: #114639 !important;
    border: 1.5px solid #114639 !important;
}
.odv-wto__act-btn--share:hover {
    background: #e6f3ec !important;
}
.odv-wto__act-btn--dl {
    background: #ffffff !important;
    color: #36554b !important;
    border: 1.5px solid #c5dbd1 !important;
}
.odv-wto__act-btn--cart {
    background: #114639 !important;
    color: #E2F11E !important;
    border: 1.5px solid #114639 !important;
    padding: 0 16px !important;
    box-shadow: 0 6px 14px rgba(17, 70, 57, 0.22) !important;
}
.odv-wto__act-btn--cart:hover {
    background: #0c3329 !important;
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .odv-wto-modal {
        padding: 0;
        align-items: flex-end;
    }
    .odv-wto-sheet {
        width: 100vw;
        max-width: 100vw;
        max-height: 96vh;
        border-radius: 18px 18px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }
    .odv-wto__head {
        padding: 9px 12px;
    }
    .odv-wto__title {
        font-size: 14px !important;
    }
    .odv-wto__privacy {
        font-size: 10px;
    }
    .odv-wto__studio-link span.hide-xs {
        display: none;
    }
    #odvTryonCanvas {
        max-height: 44vh;
    }
    .odv-wto__controls {
        padding: 9px 12px 8px;
        gap: 6px;
    }
    .odv-wto__lbl {
        width: 44px;
        font-size: 10px;
    }
    .odv-wto__chip {
        font-size: 10px !important;
        min-height: 29px !important;
        padding: 4px 2px !important;
    }
    .odv-wto__foot {
        padding: 9px 12px 12px;
        flex-direction: column;
        align-items: stretch;
        border-radius: 0;
        gap: 7px;
    }
    .odv-wto__price-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        flex-wrap: wrap;
    }
    .odv-wto__price-main {
        font-size: 13.5px;
    }
    .odv-wto__ship-tag {
        font-size: 10px;
    }
    .odv-wto__actions {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px;
        width: 100%;
    }
    .odv-wto__act-btn--cart {
        grid-column: 1 / -1;
        min-height: 42px !important;
        font-size: 13px !important;
    }
}
