/* =========================================================
   CBD SAMPLE ORDER
   Popup + Button
   ========================================================= */


/* ---------------------------------------------------------
   SAMPLE BUTTON
   --------------------------------------------------------- */
.cbd-sample-login-message {
    display: none;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

/* Guest Login Popup */

.cbd-sample-login-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    overflow: hidden;
}

.cbd-sample-login-popup-open {
    display: block;
}

.cbd-sample-login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.cbd-sample-login-modal {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 500px;
    margin: 15vh auto 0;
    background: #fff;
    border-radius: 15px;
    box-sizing: border-box;
}

.cbd-sample-login-content {
    padding: 45px 40px;
    text-align: center;
}

.cbd-sample-login-content h2 {
    margin: 0 0 15px;
}

.cbd-sample-login-content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

.cbd-sample-login-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 0;
    background: #eee;
    font-size: 28px;
    line-height: 40px;
    cursor: pointer;
}

@media (max-width: 767px) {

    .cbd-sample-login-modal {
        width: calc(100% - 20px);
        margin-top: 12vh;
        border-radius: 10px;
    }

    .cbd-sample-login-content {
        padding: 40px 25px;
    }

}
.cbd-sample-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    margin-top: 15px;

    border: 1px solid #222;
    border-radius: 4px;

    background: #222;
    color: #fff;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;
    transition: all 0.2s ease;
}

.cbd-sample-button:hover {
    background: #fff;
    color: #222;
}


/* ---------------------------------------------------------
   POPUP WRAPPER
   --------------------------------------------------------- */

.cbd-sample-popup {
    display: none;

    position: fixed;
    z-index: 999999;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    overflow-y: auto;
}

.cbd-sample-popup.cbd-sample-popup-open {
    display: block;
}


/* ---------------------------------------------------------
   OVERLAY
   --------------------------------------------------------- */

.cbd-sample-overlay {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);

    cursor: pointer;
}


/* ---------------------------------------------------------
   MODAL
   --------------------------------------------------------- */

.cbd-sample-modal {
    position: relative;

    width: calc(100% - 30px);
    max-width: 760px;

    margin: 40px auto;

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

    overflow: hidden;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.cbd-sample-content {
    position: relative;

    padding: 40px;
}

.cbd-sample-content h2 {
    margin: 0 0 25px;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
}

.cbd-sample-product {
    display: flex;
    gap: 8px;
    align-items: center;

    margin-bottom: 30px;
    padding: 15px 18px;

    background: #f5f5f5;

    border-radius: 6px;

    font-size: 16px;
}


/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.cbd-sample-close {
    position: absolute;

    top: 15px;
    right: 18px;

    z-index: 5;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #222;

    font-size: 32px;
    font-weight: 300;
    line-height: 38px;

    cursor: pointer;
}

.cbd-sample-close:hover {
    color: #000;
}


/* ---------------------------------------------------------
   FORM SECTIONS
   --------------------------------------------------------- */

.cbd-sample-section {
    margin-bottom: 35px;
}

.cbd-sample-section h3 {
    margin: 0 0 20px;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}


/* ---------------------------------------------------------
   FORM ROW
   --------------------------------------------------------- */

.cbd-sample-row {
    display: flex;
    gap: 20px;
}

.cbd-sample-row .cbd-sample-field {
    flex: 1;
}


/* ---------------------------------------------------------
   FORM FIELDS
   --------------------------------------------------------- */

.cbd-sample-field {
    margin-bottom: 18px;
}

.cbd-sample-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;

    color: #222;
}

.cbd-sample-field input,
.cbd-sample-field select {
    display: block;

    width: 100%;
    height: 52px;

    padding: 0 14px;

    border: 1px solid #d6d6d6;
    border-radius: 4px;

    background: #fff;

    color: #222;

    font-size: 16px;
    line-height: 1.4;

    box-sizing: border-box;
}

.cbd-sample-field input:focus,
.cbd-sample-field select:focus {
    outline: none;

    border-color: #222;
}


/* ---------------------------------------------------------
   SAME ADDRESS CHECKBOX
   --------------------------------------------------------- */

.cbd-sample-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    cursor: pointer;

    font-size: 15px;
    line-height: 1.4;
}

.cbd-sample-checkbox input {
    width: 18px;
    height: 18px;

    margin: 0;

    cursor: pointer;
}

.cbd-shipping-fields {
    width: 100%;
}


/* ---------------------------------------------------------
   MESSAGE
   --------------------------------------------------------- */

.cbd-sample-message {
    display: none;

    margin-bottom: 20px;
    padding: 12px 15px;

    border-radius: 4px;

    font-size: 14px;
    line-height: 1.5;
}

.cbd-sample-message.cbd-error {
    display: block;

    background: #fff1f1;
    color: #b42318;

    border: 1px solid #f1b5b5;
}

.cbd-sample-message.cbd-success {
    display: block;

    background: #f0fff4;
    color: #187a3d;

    border: 1px solid #b7e2c5;
}


/* ---------------------------------------------------------
   SUBMIT BUTTON
   --------------------------------------------------------- */

.cbd-sample-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 55px;

    padding: 15px 25px;

    border: 1px solid #222;
    border-radius: 4px;

    background: #222;
    color: #fff;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;

    transition: all 0.2s ease;
}

.cbd-sample-submit:hover {
    background: #000;
}

.cbd-sample-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .cbd-sample-modal {
        width: calc(100% - 20px);

        margin: 15px auto;

        border-radius: 8px;
    }

    .cbd-sample-content {
        padding: 30px 20px;
    }

    .cbd-sample-content h2 {
        padding-right: 35px;

        font-size: 25px;
    }

    .cbd-sample-row {
        flex-direction: column;
        gap: 0;
    }

    .cbd-sample-product {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .cbd-sample-close {
        top: 10px;
        right: 10px;
    }

}
/* Prevent background page from scrolling when popup is open */
body.cbd-sample-popup-active {
    overflow: hidden;
}

/* Popup overlay */
.cbd-sample-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    overflow: hidden;
}

.cbd-sample-popup-open {
    display: block;
}

/* Dark background */
.cbd-sample-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

/* Popup modal */
.cbd-sample-modal {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 760px;

    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);

    margin: 30px auto;

    background: #fff;
    border-radius: 15px;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    scrollbar-width: thin;
}

/* Popup content */
.cbd-sample-content {
    padding: 40px;
    box-sizing: border-box;
}

/* Close button */
.cbd-sample-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;

    width: 40px;
    height: 40px;

    border: 0;
    background: #eee;

    font-size: 28px;
    line-height: 40px;

    cursor: pointer;
}

@media (max-width: 767px) {

    .cbd-sample-modal {
        width: calc(100% - 20px);
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 10px;
    }

    .cbd-sample-content {
        padding: 30px 20px;
    }
}
.cbd-sample-success-modal {
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

.cbd-sample-success-modal .cbd-sample-content {
    padding: 50px 40px;
}

.cbd-sample-message.cbd-success {
    margin: 0;
    padding: 25px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}