/* Site dialogs (js/dialog.js): confirm / alert in the site's look instead of the browser's boxes. */
html.cd-open {
    overflow: hidden;
}

.cd {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cd-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 22, 1, .45);
    opacity: 0;
    transition: opacity .2s ease;
}

.cd-box {
    position: relative;
    width: min(460px, 100%);
    padding: max(28px, 44rem) max(24px, 44rem) max(24px, 36rem);
    background-color: var(--c0, #E5E5E2);
    color: var(--c1, #161601);
    text-align: center;
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
}

.cd.is-in .cd-backdrop {
    opacity: 1;
}

.cd.is-in .cd-box {
    opacity: 1;
    transform: none;
}

.cd-title {
    font-size: var(--f-l, 32px);
    line-height: 1.05;
    font-weight: 400;
}

.cd-message {
    margin-top: max(12px, 16rem);
    font-size: var(--f-s, 15px);
    line-height: 1.6;
    opacity: .75;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.cd-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: max(24px, 34rem);
}

.cd-button {
    appearance: none;
    min-width: 140px;
    padding: 14px 22px;
    border: var(--sl, 1px) solid var(--c1, #161601);
    background: none;
    font: inherit;
    font-size: var(--f-xs, 12px);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c1, #161601);
    cursor: pointer;
    transition: background-color .25s, color .25s;
}

.cd-cancel:hover {
    background-color: rgba(22, 22, 1, .06);
}

.cd-ok {
    background-color: var(--c1, #161601);
    color: var(--c0, #E5E5E2);
}

.cd-ok:hover {
    background-color: #3a3a24;
}

.cd-danger {
    background-color: #6b1f12;
    border-color: #6b1f12;
}

.cd-danger:hover {
    background-color: #82281a;
}

.cd-box-wide {
    width: min(520px, 100%);
}

/* prompt */
.cd-input {
    display: block;
    width: 100%;
    margin-top: max(18px, 24rem);
    padding: 14px 16px;
    border: var(--sl, 1px) solid var(--c3, rgba(22, 22, 1, .2));
    background: transparent;
    font: inherit;
    font-size: var(--f-s, 15px);
    color: var(--c1, #161601);
    text-align: center;
}

.cd-input:focus {
    outline: 0;
    border-color: var(--c1, #161601);
}

/* choose */
.cd-options {
    margin-top: max(18px, 24rem);
    text-align: left;
    border-top: var(--sl, 1px) solid var(--c3, rgba(22, 22, 1, .2));
    max-height: 46vh;
    overflow-y: auto;
}

.cd-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 4px;
    border-bottom: var(--sl, 1px) solid var(--c3, rgba(22, 22, 1, .2));
    cursor: pointer;
}

.cd-option input {
    appearance: none;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid var(--c1, #161601);
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.cd-option input::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--c1, #161601);
    transform: scale(0);
    transition: transform .15s;
}

.cd-option input:checked::after {
    transform: scale(1);
}

.cd-option input[type="checkbox"] {
    border-radius: 0;
}

.cd-option input[type="checkbox"]::after {
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: none;
    border: solid var(--c1, #161601);
    border-width: 0 1.5px 1.5px 0;
    width: 5px;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
}

.cd-option input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}

.cd-option.is-disabled {
    opacity: .4;
    cursor: default;
}

.cd-option.is-disabled input {
    cursor: default;
}

.cd-button:disabled {
    opacity: .35;
    cursor: default;
}

/* Collection menu (js/favorites.js): opens after saving a product or from "+" on a favourite card */
.fav-pop {
    position: fixed;
    z-index: 4000;
    width: 260px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px 0;
    background-color: var(--c0, #E5E5E2);
    color: var(--c1, #161601);
    box-shadow: inset 0 0 0 1px rgba(22, 22, 1, .14), 0 14px 34px rgba(22, 22, 1, .16);
    animation: cd-pop .18s ease both;
    text-align: left;
}

@keyframes cd-pop {
    from { opacity: 0; transform: translateY(-6px); }
}

.fav-pop svg {
    fill: none;
}

.fav-pop-saved {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid rgba(22, 22, 1, .14);
    font-size: var(--f-s, 15px);
}

.fav-pop-title {
    padding: 10px 16px 8px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .55;
}

.fav-pop button {
    appearance: none;
    display: grid;
    grid-template-columns: 34px 1fr 18px;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    background: none;
    padding: 8px 16px;
    font: inherit;
    font-size: var(--f-s, 15px);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.fav-pop button:hover,
.fav-pop button:focus-visible {
    background-color: rgba(22, 22, 1, .05);
    outline: 0;
}

.fav-pop-mosaic {
    width: 34px;
    height: 34px;
    background-color: #d6d5d1;
    overflow: hidden;
}

.fav-pop-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fav-pop-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-pop-check svg {
    display: block;
}

.fav-pop .fav-pop-new {
    grid-template-columns: 34px 1fr;
    margin-top: 4px;
    border-top: 1px solid rgba(22, 22, 1, .14);
    padding-top: 12px;
}

.fav-pop-new svg {
    justify-self: center;
}

.cd-option-text b {
    display: block;
    font-weight: 400;
    font-size: var(--f-s, 15px);
}

.cd-option-text small {
    display: block;
    font-size: 12px;
    opacity: .6;
}

/* Small status note at the bottom ("Dosya hazırlanıyor…") */
.cd-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 5001;
    transform: translateX(-50%);
    padding: 12px 22px;
    background-color: var(--c1, #161601);
    color: var(--c0, #E5E5E2);
    font-size: var(--f-xs, 12px);
    letter-spacing: .12em;
    text-transform: uppercase;
    animation: cd-toast .25s ease both;
}

@keyframes cd-toast {
    from { opacity: 0; transform: translate(-50%, 10px); }
}

.cd-button:focus-visible {
    outline: 1px solid var(--c1, #161601);
    outline-offset: 3px;
}

/* "Bilgi al" / "Randevu alın" form (Views/Partial/Overlays.cshtml): what it is about, and why it was not sent */
.talep-subject {
    margin-top: 12px;
    font-size: var(--f-s);
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .6;
}

.talep-error {
    margin-top: 16px;
    color: #b42318;
    font-size: var(--f-s);
}
