/**
 * Custom CSS for Chesmir Theme
 * Add your custom styles here
 */

/* Example custom styles - replace with your own */
body {
    /* Add your custom body styles here */
}

.page-product-configurable .footer {
    margin-top: 20px;
}

/* select2 */

.select2.select2-container.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 0 !important;
    height: 45px !important;
}

.select2.select2-container.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2.select2-container.select2-container--default .select2-selection--single .select2-selection__clear,
.select2.select2-container.select2-container--default .select2-selection--single .select2-selection__arrow {
    margin-top: 10px;
}

.select2.select2-container.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-top: 5px;
}

/* dual prices */

.old-price {
    display: block;
}

.old-price .price {
    display: inline !important;
    font-size: 0.8em;
}
.old-price .side-price {
    font-size: inherit !important;
    text-decoration: line-through;
}

#featured_products .old-price .side-price {
    font-size: 0.8em !important;
}

.mgz-productpagebuilder .old-price .side-price {
    font-size: inherit;
}

span.side-price {
    font-size: inherit !important;
}

span.conversion-rate {
    font-size: 0.8em;
    font-weight: 500;
    font-style: italic;
    display: block;
}

#shopping-cart-table .price-excluding-tax .cart-price .price,
#shopping-cart-table .price-excluding-tax .cart-price .side-price {
    font-size: 16px !important;
    font-weight: 600 !important;
}

#cart-totals .grand.totals .price,
#cart-totals .grand.totals .side-price {
    font-size: 16px !important;
    font-weight: inherit !important;
}

.minicart-items .cart-price .side-price {
    font-size: 0.8125rem !important;
    font-weight: inherit !important;
}

.field.street > legend.label {
    display: none !important;
}

/* logo */

.logo img {
    max-width: 60px !important;
    max-height: none !important;
}

/* porto crap fixes */

.footer-bottom a {
    color: #E3E3E3 !important;
}

.action,
.action.action-cancel {
    padding: 5px 8px !important;
    line-height: 1.5 !important;
    border-color: #333333 !important;
}

.action.manage-addresses {
    margin-left: 10px !important;
    margin-top: 0px !important;
    padding: 8px 8px !important;
}

.action.btn-go-shop,
.action.apply {
    padding: 13px !important;
}

.action.tocart {
    margin-top: 0 !important;
}

/* profile */

.form-address-edit  div.field.street.required > div > div.field.primary > label,
.form-address-edit  div.field.taxvat,
.form-address-edit  div.field.country {
    display: none !important;
}

/* checkout*/

@media (min-width: 768px) {
    .opc-wrapper .form-login, 
    .opc-wrapper .form-shipping-address {
        max-width: 100% !important;
    }
    table.table-checkout-shipping-method {
        width: 100% !important;
    }
}


#shopping-cart-table .subtotal .side-price,
#shopping-cart-table .subtotal .price {
    color: #222529 !important;
}

table.table-checkout-shipping-method tbody tr td.col-method {
    text-align: right !important;
}

table.table-checkout-shipping-method tbody tr td.col-method {
    /* max-width: 20px !important; */
    text-align: left !important;
}

.form-shipping-address .field-error {
    color: red !important;
}

/* Edit address button in checkout */
.shipping-address-item {
    position: relative;
}

.shipping-address-item.not-selected-item {
    border: 1px solid #aaa;
}

.shipping-address-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
}

.shipping-address-actions .action-edit-address {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1979c3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.shipping-address-actions .action-edit-address:hover {
    background-color: #006bb4;
    color: #ffffff;
    text-decoration: none;
}

.shipping-address-actions .action-edit-address span {
    display: inline-block;
}

@media (max-width: 767px) {
    .shipping-address-actions .action-edit-address {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }
}


.checkout-index-index .authentication-wrapper {
    display: none;
}

/* hide billing address same as shipping block */

.billing-address-same-as-shipping-block {
    display: none !important;
}

/* hide first category description */

.page-wrapper > .category-description {
    display: none !important;
}

.bundle-options-container .block-bundle-summary {
    width: 30% !important;
}

.page-with-filter .sidebar {
    display: none;
}

.page-with-filter .columns .column.main {
    width: 100% !important;
    float: none !important;
}

.price {
    font-weight: 500 !important;
}

.conversion-rate {
    display: none !important;
}

/* social login popup */

/* 1. Force the container to expand with its content */
.social-login-popup-modals .modal-inner-wrap,
#social-login-popup {
    height: auto !important;
    min-height: 500px !important; /* Adjust based on number of buttons */
    max-height: 90% !important;  /* Prevents it from going off-screen on mobile */
    overflow-y: auto !important;
    overflow-x: none !important;
    width: 100% !important;
    max-width: 500px !important; /* Adjust this to your preferred width */
    overflow-x: hidden !important; /* Kills the horizontal scrollbar */
}

/* 2. Fix Porto's modal-content restriction */
.social-login-popup-modals .modal-content {
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 20px !important;
}

/* 3. Ensure the social buttons container isn't squashed */
.social-login-customer-authentication .social-login-block {
    display: block !important;
    clear: both !important;
    margin-bottom: 0;
}

/* 4. Mobile responsiveness fix */
@media (max-width: 767px) {
    .social-login-popup-modals .modal-inner-wrap {
        width: 95% !important;
        margin: 10px auto !important;
    }
}


.social-login-title {
    clear: both !important;
}

.social-login-authentication-channel {
    display: block !important;
}

#mp-popup-social-content {
    display: block !important;
    clear: both !important;
    padding: 0 25px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.social-login-authentication-channel {
    margin: 20px auto !important;
    width: 60% !important;
}

.products-grid.divider-line .product-item {
    border-right: 1px solid rgba(0, 0, 0, 0.09);
}


.page-products .old-price .price,
.page-products .old-price .side-price {
    font-size: 0.9rem !important;
}


/* fix me */
/* .porto-product-filters-toggle {
    display: none !important;
} */