/*
 * Contact seller modal for the Titit item page.
 * Kept independent from Feedback so the contact flow remains usable when the
 * Feedback plugin is disabled or its assets are unavailable.
 */

.contact-seller-modal,
.contact-seller-modal * {
    box-sizing: border-box;
}

.contact-seller-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 14px;
    overflow-y: auto;
}

.contact-seller-modal.is-open {
    display: flex;
}

.contact-seller-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(19, 29, 34, .68);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.contact-seller-dialog {
    position: relative;
    z-index: 1;
    display: block;
    width: 620px;
    max-width: 100%;
    margin: auto;
    padding: 22px;
    overflow: visible;
    color: #263238;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
    text-align: left;
}

.contact-seller-dialog h2 {
    float: none;
    clear: none;
    width: auto;
    margin: 0;
    padding: 0;
    color: #263238;
    font-family: inherit;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
}

.contact-seller-dialog-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 38px;
}

.contact-seller-dialog-heading > div {
    min-width: 0;
}

.contact-seller-dialog-heading p {
    margin: 4px 0 0;
    overflow: hidden;
    color: #6c7780;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-seller-dialog-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    font-size: 23px;
    line-height: 1;
    background: linear-gradient(145deg, #25a7f0, #0879d9);
    border-radius: 12px;
    box-shadow: 0 3px 9px rgba(8, 121, 217, .25);
}

.contact-seller-close {
    position: absolute;
    top: 10px;
    right: 11px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: #667178;
    font-family: inherit;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    background: #f6f8f9;
    border: 0;
    border-radius: 50%;
}

.contact-seller-close:hover,
.contact-seller-close:focus {
    color: #263238;
    background: #e8eef2;
    outline: 0;
}

.contact-seller-modal-content {
    display: block;
    width: 100%;
    margin-top: 20px;
}

.contact-seller-modal-content .inner-block {
    display: block !important;
    float: none;
    clear: both;
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
}

.contact-seller-modal-content .empty {
    float: none;
    clear: both;
    width: 100%;
    margin: 0 !important;
    padding: 14px;
    color: #46545b;
    font-size: 13px;
    line-height: 1.5;
    background: #f4f8fb;
    border: 1px solid #d9e6ee;
    border-radius: 8px;
}

.contact-seller-modal-content .empty:empty {
    display: none;
}

.contact-seller-modal-content #error_list {
    float: none;
    clear: both;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    color: #b83c31;
    list-style: none;
}

.contact-seller-modal-content #error_list:empty {
    display: none;
}

.contact-seller-modal-content form {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    margin: 0;
}

.contact-seller-modal-content fieldset {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.contact-seller-modal-content #contact_form fieldset > h3,
.contact-seller-modal-content #contact_form fieldset > .del {
    display: none;
}

.contact-seller-modal-content label {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    margin: 14px 0 5px;
    color: #3d494f;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}

.contact-seller-modal-content input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.contact-seller-modal-content textarea,
.contact-seller-modal-content select {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 11px;
    color: #263238;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    background: #fff;
    border: 1px solid #ccd4d9;
    border-radius: 7px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
}

.contact-seller-modal-content textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-seller-modal-content input:focus,
.contact-seller-modal-content textarea:focus,
.contact-seller-modal-content select:focus {
    border-color: #0879d9;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(8, 121, 217, .12);
}

.contact-seller-modal-content .req {
    color: #c4473a;
}

.contact-seller-modal-content .req-what {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    color: #6c7780;
    font-size: 10px;
}

.contact-seller-modal-content .req-what .req,
.contact-seller-modal-content .req-what .small-info {
    float: none;
    width: auto;
    margin: 0;
}

.contact-seller-modal-content button[type="submit"],
.contact-seller-modal-content input[type="submit"],
.contact-seller-modal-content #uniform-green {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    min-height: 44px;
    margin: 18px 0 0;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
    background: linear-gradient(180deg, #1591eb, #0879d9);
    background-position: 0 0;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 4px 10px rgba(8, 121, 217, .2);
}

.contact-seller-modal-content button[type="submit"]:hover,
.contact-seller-modal-content button[type="submit"]:focus,
.contact-seller-modal-content input[type="submit"]:hover,
.contact-seller-modal-content input[type="submit"]:focus,
.contact-seller-modal-content #uniform-green:hover,
.contact-seller-modal-content #uniform-green:focus {
    color: #fff;
    background: #075fab;
    outline: 0;
}

.contact-seller-modal-content .g-recaptcha,
.contact-seller-modal-content .g-recaptcha > div,
.contact-seller-modal-content iframe {
    max-width: 100%;
}

.contact-seller-trigger {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
}

/* The seller rail contains floated legacy blocks. Keep following widgets and
   the QR section below the complete contact/review column. */
#c-seller #right-seller::after {
    display: table;
    clear: both;
    content: "";
}

body.contact-seller-modal-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .contact-seller-modal {
        padding: 12px 8px;
    }

    .contact-seller-dialog {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .contact-seller-dialog-heading {
        gap: 10px;
    }

    .contact-seller-dialog-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .contact-seller-dialog h2 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-seller-modal *,
    .contact-seller-trigger {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
