.ps-quote-modal[hidden] {
    display: none !important;
}

.ps-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.ps-quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
}

.ps-quote-modal__dialog {
    position: relative;
    width: min(100%, 380px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 22px;
    border: 1px solid #cbeaf6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .22);
    box-sizing: border-box;
}

.ps-quote-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #cbeaf6;
    border-radius: 999px;
    background: #f3fbfe;
    color: #087ea4;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.ps-quote-modal h2 {
    margin: 0 42px 6px 0;
    color: #222;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.ps-quote-modal__intro {
    margin: 0 42px 16px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}

.ps-quote-modal__body,
.ps-quote-modal__auth {
    display: grid;
    gap: 12px;
}

.ps-quote-modal__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #f5fbfe;
}

.ps-quote-modal__tabs button {
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #087ea4;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.ps-quote-modal__tabs button.is-active {
    background: #009FE3;
    color: #fff;
}

.ps-quote-modal__field {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #222;
    font-size: 13px;
    font-weight: 900;
}

.ps-quote-modal__field input,
.ps-quote-modal__field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #cbeaf6;
    border-radius: 8px;
    background: #f6fcff;
    color: #222;
    font-size: 14px;
    box-sizing: border-box;
}

.ps-quote-modal__field textarea {
    min-height: 108px;
    resize: vertical;
}

.ps-quote-modal__newsletter {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 0;
    color: #444;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.ps-quote-modal__newsletter input {
    margin-top: 2px;
}

.ps-quote-modal__status {
    min-height: 20px;
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}

.ps-quote-modal__status.is-error {
    color: #E6007E;
    font-weight: 800;
}

.ps-quote-modal__status.is-success {
    color: #087ea4;
    font-weight: 800;
}

.ps-quote-modal__status-link {
    color: #009FE3;
    font-weight: 900;
    text-decoration: underline;
}

.ps-quote-modal__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 16px;
}

.ps-quote-modal__submit,
.ps-quote-modal__cancel,
.ps-quote-button,
.ps-quote-card__button {
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.ps-quote-modal__submit,
.ps-quote-button--primary {
    background: #F8E600;
    color: #222;
}

.ps-quote-modal__submit:hover,
.ps-quote-modal__submit:focus,
.ps-quote-button--primary:hover,
.ps-quote-button--primary:focus {
    background: #e6d500;
    color: #222;
}

.ps-quote-modal__submit:disabled {
    opacity: .6;
    cursor: wait;
}

.ps-quote-modal__cancel {
    background: #eef7fb;
    color: #087ea4;
}

.ps-quote-modal-open {
    overflow: hidden;
}

.ps-quotes-account {
    display: grid;
    gap: 18px;
}

.ps-quotes-account h2,
.ps-quote-detail h1,
.ps-quote-detail h2 {
    color: #222;
    font-weight: 900;
    letter-spacing: 0;
}

.ps-quotes-account h2 {
    margin: 0;
    font-size: 26px;
}

.ps-quotes-account__list {
    display: grid;
    gap: 12px;
}

.ps-quote-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 159, 227, .08);
}

.ps-quote-card__body {
    min-width: 0;
}

.ps-quote-card h3 {
    margin: 8px 0 4px;
    color: #222;
    font-size: 17px;
    font-weight: 900;
}

.ps-quote-card h3 a {
    color: inherit;
    text-decoration: none;
}

.ps-quote-card p {
    margin: 0;
    color: #555;
    font-size: 13px;
}

.ps-quote-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    color: #087ea4;
    font-size: 12px;
    font-weight: 800;
}

.ps-quote-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef7fb;
    color: #087ea4;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ps-quote-card__status--disponibile,
.ps-quote-card__status--accettato {
    background: #fff5fb;
    color: #E6007E;
}

.ps-quote-card__button {
    background: #009FE3;
    color: #fff;
}

.ps-quote-card__button:hover,
.ps-quote-card__button:focus {
    background: #007fb6;
    color: #fff;
}

.ps-quote-detail {
    display: grid;
    gap: 20px;
    width: min(100%, 1040px);
    margin: 0 auto;
}

.ps-quote-detail__header {
    display: grid;
    gap: 6px;
}

.ps-quote-detail__header h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
}

.ps-quote-detail__header p {
    margin: 0;
    color: #555;
}

.ps-quote-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.ps-quote-detail__panel,
.ps-quote-detail__side {
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 159, 227, .08);
}

.ps-quote-detail__panel {
    padding: 20px;
}

.ps-quote-detail__side {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.ps-quote-detail__panel h2,
.ps-quote-detail__side h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.ps-quote-detail__summary {
    display: grid;
    gap: 0;
    margin: 16px 0 0;
}

.ps-quote-detail__summary div {
    display: grid;
    grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #edf7fb;
}

.ps-quote-detail__summary dt,
.ps-quote-detail__summary dd {
    margin: 0;
}

.ps-quote-detail__summary dt {
    color: #777;
    font-weight: 800;
}

.ps-quote-detail__summary dd {
    color: #222;
    font-weight: 900;
    text-align: right;
}

.ps-quote-detail__price {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 8px;
    background: #f3fbfe;
}

.ps-quote-detail__price span {
    color: #087ea4;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ps-quote-detail__price strong {
    color: #E6007E;
    font-size: 26px;
    font-weight: 900;
}

.ps-quote-detail__pending {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.ps-quote-detail__download,
.ps-quote-detail__back {
    color: #087ea4;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-decoration: underline;
}

.ps-quote-detail__download {
    margin-top: 2px;
}

@media (max-width: 760px) {
    .ps-quote-modal {
        align-items: end;
        padding: 12px;
    }

    .ps-quote-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

    .ps-quote-modal__actions,
    .ps-quote-card,
    .ps-quote-detail__grid,
    .ps-quote-detail__summary div {
        grid-template-columns: 1fr;
    }

    .ps-quote-card__button {
        width: 100%;
    }

    .ps-quote-detail__side {
        position: static;
        order: 2;
    }

    .ps-quote-detail__summary dd {
        text-align: left;
    }
}

.ps-quote-detail__items {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.ps-quote-detail__items h2 {
    margin: 0;
    color: #222;
    font-size: 20px;
    font-weight: 900;
}

.ps-quote-detail__items-scroll {
    overflow-x: auto;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #fff;
}

.ps-quote-detail__items table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

.ps-quote-detail__items th,
.ps-quote-detail__items td {
    padding: 12px;
    border-bottom: 1px solid #edf7fb;
    text-align: left;
    vertical-align: top;
}

.ps-quote-detail__items th {
    background: #f3fbfe;
    color: #087ea4;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ps-quote-detail__items td:nth-child(n+2),
.ps-quote-detail__items th:nth-child(n+2) {
    text-align: right;
    white-space: nowrap;
}

.ps-quote-detail__items td span {
    display: block;
    margin-top: 5px;
    color: #555;
    font-size: 12px;
    line-height: 1.45;
}

.ps-quote-detail__item-media {
    display: block;
    width: min(100%, 220px);
    margin-top: 9px;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ps-quote-detail__item-media img {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: contain;
    background: #fff;
}

.ps-quote-detail__items tbody tr:last-child td {
    border-bottom: 0;
}
.ps-quote-detail__options {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.ps-quote-detail__options > h2 {
    margin: 0;
    color: #222;
    font-size: 20px;
    font-weight: 900;
}

.ps-quote-detail__option {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 159, 227, .06);
}

.ps-quote-detail__option-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.ps-quote-detail__option-header h3 {
    margin: 0 0 5px;
    color: #222;
    font-size: 18px;
    font-weight: 900;
}

.ps-quote-detail__option-header p {
    margin: 0 0 6px;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}

.ps-quote-detail__option-header span {
    display: inline-flex;
    color: #087ea4;
    font-size: 12px;
    font-weight: 900;
}

.ps-quote-detail__option-payment {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.ps-quote-detail__option-payment > strong {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f3fbfe;
    color: #E6007E;
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
}

.ps-quote-detail__option-payment > span {
    text-align: right;
}

.ps-quote-detail__option .ps-quote-detail__items {
    margin-top: 0;
}

.ps-quote-detail__option-media {
    display: grid;
    gap: 6px;
    width: min(100%, 380px);
    margin: 0;
}

.ps-quote-detail__option-media a {
    display: block;
    overflow: hidden;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #fff;
}

.ps-quote-detail__option-media img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #fff;
}

.ps-quote-detail__option-media figcaption {
    color: #555;
    font-size: 12px;
    line-height: 1.4;
}

.ps-quote-detail__option-status {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f3fbfe;
    color: #087ea4;
    font-size: 13px;
    font-weight: 900;
}
.ps-quote-detail__option-actions {
    display: flex;
    justify-content: flex-end;
}

.ps-quote-detail__option-actions .ps-quote-button {
    min-width: 220px;
}

@media (max-width: 760px) {
    .ps-quote-detail__option-header {
        grid-template-columns: 1fr;
    }

    .ps-quote-detail__option-payment {
        justify-self: start;
        justify-items: start;
    }

    .ps-quote-detail__option-payment > strong {
        white-space: normal;
    }

    .ps-quote-detail__option-payment > span {
        text-align: left;
    }

    .ps-quote-detail__option-actions,
    .ps-quote-detail__option-actions .ps-quote-button {
        width: 100%;
    }
}
/* WooCommerce account polish */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 11px 13px;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #f6fcff;
    color: #087ea4;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li a:focus {
    background: #009FE3;
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.ps-quote-card__button):not(.ps-quote-button) {
    color: #087ea4;
    font-weight: 800;
}

.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button.button,
.woocommerce-account .woocommerce-MyAccount-content input.button,
.woocommerce-account .woocommerce-Button,
.woocommerce-account button.woocommerce-Button,
.woocommerce-account .woocommerce-button {
    min-height: 42px;
    padding: 11px 16px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #F8E600 !important;
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button.button:hover,
.woocommerce-account .woocommerce-MyAccount-content input.button:hover,
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account button.woocommerce-Button:hover,
.woocommerce-account .woocommerce-button:hover {
    background: #e6d500 !important;
    color: #222 !important;
}

.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields,
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register {
    padding: 18px;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 159, 227, .08);
}

.woocommerce-account .woocommerce-Input,
.woocommerce-account .input-text,
.woocommerce-account select,
.woocommerce-account textarea {
    min-height: 42px;
    padding: 10px 11px !important;
    border: 1px solid #cbeaf6 !important;
    border-radius: 8px !important;
    background: #f6fcff !important;
    color: #222 !important;
    box-shadow: none !important;
}

.woocommerce-account .woocommerce-Input:focus,
.woocommerce-account .input-text:focus,
.woocommerce-account select:focus,
.woocommerce-account textarea:focus {
    border-color: #009FE3 !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, .14) !important;
}

.ps-account-dashboard-quotes {
    display: grid;
    gap: 14px;
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid #d7eef7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 159, 227, .08);
}

.ps-account-dashboard-quotes__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ps-account-dashboard-quotes__header span {
    color: #087ea4;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ps-account-dashboard-quotes__header h2 {
    margin: 2px 0 0;
    color: #222;
    font-size: 22px;
    font-weight: 900;
}

.ps-account-dashboard-quotes__header a {
    color: #087ea4;
    font-size: 13px;
    font-weight: 900;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .ps-account-dashboard-quotes__header {
        align-items: flex-start;
        flex-direction: column;
    }
}
.ps-quote-checkout-mockups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ps-quote-checkout-mockup {
    display: grid;
    gap: 4px;
    width: 92px;
    color: #222;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.ps-quote-checkout-mockup img {
    display: block;
    width: 92px;
    height: 68px;
    object-fit: contain;
    border: 1px solid #d7eef7;
    border-radius: 6px;
    background: #fff;
}

.ps-quote-checkout-mockup span {
    overflow-wrap: anywhere;
}
