/* Shar-Perm Quick Order */
.spqo-wrap {
    display: block;
    margin-top: 12px;
    width: 100%;
}

.spqo-open-button {
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid #222;
    border-radius: 4px;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    transition: opacity .2s ease, background .2s ease;
}

.spqo-open-button:hover {
    opacity: .85;
}

.spqo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.spqo-modal.is-open {
    display: block;
}

.spqo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.spqo-dialog {
    position: relative;
    width: calc(100% - 30px);
    max-width: 480px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    margin: 15px auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.spqo-close {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
}

.spqo-dialog h3 {
    margin: 0 35px 8px 0;
    font-size: 24px;
}

.spqo-product-title {
    margin: 0 0 20px;
    font-size: 14px;
    opacity: .75;
}

.spqo-field {
    margin-bottom: 15px;
}

.spqo-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.spqo-field label span {
    color: #c00;
}

.spqo-field input,
.spqo-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    background: #fff;
    font-size: 16px;
}

.spqo-field input.has-error,
.spqo-field textarea.has-error,
.spqo-consent.has-error {
    border-color: #d00;
}

.spqo-error {
    min-height: 0;
    margin-top: 4px;
    color: #c00;
    font-size: 13px;
}

.spqo-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 5px;
    font-size: 13px;
    line-height: 1.4;
}

.spqo-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.spqo-submit {
    position: relative;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 12px 20px;
    border: 0;
    border-radius: 5px;
    background: #222;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.spqo-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.spqo-spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: -3px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
}

.spqo-submit.is-loading .spqo-spinner {
    display: inline-block;
    animation: spqo-spin .7s linear infinite;
}

@keyframes spqo-spin {
    to { transform: rotate(360deg); }
}

.spqo-message {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.spqo-message.is-success {
    color: #16733a;
}

.spqo-message.is-error {
    color: #b00020;
}

.spqo-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

body.spqo-no-scroll {
    overflow: hidden;
}

@media (max-width: 480px) {
    .spqo-dialog {
        padding: 22px 18px;
    }
}
