/* Reskin for the "Simple Checkout & Registration" extension to match the flan theme. */

.simple-content {
    font-family: "Montserrat", sans-serif;
    color: #231f20;
}

/* Step accordion headings */
.simple-content .checkout-heading {
    background-color: #f5f5f5 !important;
    border: unset !important;
    border-radius: 16px !important;
    color: #231f20 !important;
    padding: 18px 22px !important;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.simplecheckout-vertical-menu .checkout-heading {
    margin-bottom: 8px;
}

.checkout-heading-button a {
    color: rgba(35, 31, 32, 0.55) !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 13px;
    text-decoration: underline !important;
}

.simplecheckout-block {
    margin-bottom: 16px;
}

.simplecheckout-block-content {
    padding: 4px 22px 20px !important;
}

/* Step pills (horizontal menu mode) */
#simplecheckout_step_menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px !important;
}

.simple-step,
.simple-step-current,
.simple-step-completed {
    border-radius: 100px !important;
    padding: 10px 20px !important;
    font-family: "Montserrat", sans-serif;
    font-size: 13px !important;
    font-weight: 600;
    background-color: #f5f5f5 !important;
    color: #231f20 !important;
}

.simple-step-current,
.simple-step-completed {
    background-color: #231f20 !important;
    color: #ffffff !important;
}

.simple-step-completed a {
    color: #ffffff !important;
}

.simple-step-delimiter {
    display: none !important;
}

/* Buttons */
.simple-content .button,
.simple-content .btn,
#simplecheckout_login .button,
.simplecheckout-login-right .button,
.simpleregister-button-right .button,
.simpleregister-button-left .button {
    border-radius: 100px !important;
    background: #fcc907 !important;
    border: unset !important;
    color: #231f20 !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px !important;
    padding: 12px 28px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none;
}

.simple-content .button:hover,
.simple-content .btn:hover {
    background: #231f20 !important;
    color: #ffffff !important;
}

.simplecheckout-button-left .button,
#simplecheckout_button_prev,
#simplecheckout_button_back {
    background: #f5f5f5 !important;
    color: #231f20 !important;
}

.simplecheckout-button-left .button:hover,
#simplecheckout_button_prev:hover,
#simplecheckout_button_back:hover {
    background: #231f20 !important;
    color: #ffffff !important;
}

.simplecheckout-cart td .btn.btn-primary,
.simplecheckout-cart td .btn.btn-danger {
    border-radius: 100px !important;
    box-shadow: none !important;
}

.simplecheckout-button-block {
    background: none !important;
    padding: 20px 0 !important;
}

/* Inputs */
.simple-content input[type=text],
.simple-content input[type=password],
.simple-content input[type=email],
.simple-content input[type=tel],
.simple-content input[type=phone],
.simple-content input[type=date],
.simple-content input[type=time],
.simple-content select,
.simple-content textarea,
.simple-content .form-control {
    border: 1px solid rgba(35, 31, 32, 0.15) !important;
    border-radius: 100px !important;
    background: #ffffff !important;
    padding: 10px 20px !important;
    height: 46px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    box-shadow: none !important;
}

.simple-content textarea {
    border-radius: 20px !important;
    height: auto;
}

.simple-content select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.simple-content input[type=text]:focus,
.simple-content input[type=password]:focus,
.simple-content input[type=email]:focus,
.simple-content select:focus,
.simple-content textarea:focus,
.simple-content .form-control:focus {
    border-color: #fcc907 !important;
}

.simple-content label {
    font-size: 13px;
    font-weight: 600;
}

.simple-content input[type=radio],
.simple-content input[type=checkbox] {
    accent-color: #fcc907;
    width: 16px;
    height: 16px;
}

/* Login block inside the "customer" step */
.simplecheckout-login-left,
.simplecheckout-login-right {
    padding: 10px 0;
}

/* Shipping / payment method choice */
.simplecheckout-methods-table td.title {
    padding: 12px !important;
    border-radius: 14px;
}

.simplecheckout-methods-table tr:hover td.title {
    background: #f5f5f5;
}

/* Cart summary table */
.simplecheckout-cart {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
}

.simplecheckout-cart thead th {
    border: unset !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(35, 31, 32, 0.5);
    font-weight: 600;
}

.simplecheckout-cart tbody td {
    border-top: 1px solid rgba(35, 31, 32, 0.08) !important;
    border-bottom: 1px solid rgba(35, 31, 32, 0.08) !important;
    padding: 12px 8px !important;
    vertical-align: middle !important;
}

.simplecheckout-cart tbody td:first-child {
    border-left: 1px solid rgba(35, 31, 32, 0.08) !important;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.simplecheckout-cart tbody td:last-child {
    border-right: 1px solid rgba(35, 31, 32, 0.08) !important;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.simplecheckout-cart td.name img,
.simplecheckout-cart td.image img {
    border-radius: 10px;
    background: #f5f5f5;
}

.simplecheckout-cart-total {
    padding: 6px 4px;
    font-size: 14px;
}

.simplecheckout-cart-total b {
    font-weight: 600;
}

#total_total {
    border-top: 1px solid rgba(35, 31, 32, 0.15);
    margin-top: 8px;
    padding-top: 14px;
}

#total_total .simplecheckout-cart-total-value {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

/* Mobile: stack the cart summary as cards instead of a horizontally-scrolling table */
@media only screen and (max-width: 768px) {
    .simple-content .table-responsive {
        overflow-x: visible !important;
    }

    .simplecheckout-cart thead {
        display: none;
    }

    .simplecheckout-cart,
    .simplecheckout-cart tbody,
    .simplecheckout-cart tr,
    .simplecheckout-cart td {
        display: block !important;
        width: 100% !important;
    }

    .simplecheckout-cart {
        border: unset !important;
    }

    .simplecheckout-cart tbody tr {
        margin-bottom: 12px;
        border: 1px solid rgba(35, 31, 32, 0.08) !important;
        border-radius: 14px !important;
        overflow: hidden;
    }

    .simplecheckout-cart tbody td {
        border: unset !important;
        border-radius: 0 !important;
        padding: 6px 14px !important;
    }

    .simplecheckout-cart td.image,
    .simplecheckout-cart td.model,
    .simplecheckout-cart td.price,
    .simplecheckout-cart td.remove {
        display: none !important;
    }

    .simplecheckout-cart td.name {
        text-align: left !important;
        padding-top: 14px !important;
    }

    .simplecheckout-cart td.name div.image {
        display: block !important;
        margin: 0 0 10px 0 !important;
    }

    .simplecheckout-cart td.name div.image img {
        width: 100%;
        max-height: 180px;
        object-fit: cover;
        border-radius: 10px;
        background: #f5f5f5;
    }

    .simplecheckout-cart td.quantity,
    .simplecheckout-cart td.total {
        text-align: left !important;
    }

    .simplecheckout-cart td.total {
        padding-bottom: 14px !important;
        font-weight: 700;
    }

    .simplecheckout-cart td.quantity::before,
    .simplecheckout-cart td.total::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: rgba(35, 31, 32, 0.5);
    }

    .simplecheckout-cart td.quantity .input-group {
        max-width: 200px !important;
        margin: 0 !important;
    }

    /* simple.css hides the +/- buttons under 640px. Quantities here are shifts
       (small numbers), so the steppers are more useful than typing. */
    .simplecheckout-cart td.quantity [data-onclick*="increase"],
    .simplecheckout-cart td.quantity [data-onclick*="decrease"] {
        display: inline-block !important;
    }
}

/* Agreement / warnings */
.simplecheckout-warning-block {
    border-radius: 14px;
}

#agreement_checkbox .checkbox label {
    font-weight: 400;
    font-size: 13px;
}
