/**
* Theme Name: GreenMart Child
* Description: This is a child theme for GreenMart
* Author: Thembay
* Author URI: https://thembay.com/
* Version: 1.0
* Template: greenmart
*/


/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */

:root {
    --primary-color: 125, 211, 252;
    --warning-color: 251, 103, 36;
}

.d24-notice_wrap:not(:empty) {
    padding: 8px;
}

.d24-notice,
.d24-notice__summary{
    padding: 8px;
    border: 1px solid rgba(var(--warning-color), 0.5);
    border-radius: 10px;
    background: rgba(var(--warning-color), 0.1);
    text-align: center;
}

@media screen and (max-width: 768px) {
    .d24-notice,
    .d24-notice__summary{
        margin-top: 1rem;
    }
}

.d24-notice a {
    color: rgba(var(--primary-color), 1);
    font-weight: bold;
}

.mini-cart-vendor,
.cart-total-notice {
    margin: 1rem;
    font-size: 1.5rem;
}

.d24-vendor-name__checkout {
    margin-bottom: 1rem;
}

.d24-vendor-name__checkout + .d24-vendor-name__checkout {
    display: none;
}

/*Popup style*/

.dr24-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Popup content */
.dr24-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: min(95%, 750px);
    width: 100%;
}

/* Popup buttons */
.dr24-popup-buttons {
    margin-top: 20px;
}

.dr24-popup-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dr24-popup-buttons button#dr24-cancelButton {
    background: #f44336;
    color: #fff;
}

.dr24-popup-buttons button#dr24-okButton {
    background: #4caf50;
    color: #fff;
}

.dr24-popup-buttons button:hover {
    opacity: 0.8;
}

/* Show popup */
.dr24-popup.dr24-show {
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.dr24-popup-heading {
    text-align: center;
}

.dr24-collapsible-header {
    cursor: pointer;
    padding: 10px;
    background: rgba(var(--primary-color), 0.1);
    border: 1px solid rgba(var(--primary-color), 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dr24-collapsible-body {
   display: none;
}

.dr24-collapsible-header span:first-child {
    display: flex;
    align-items: start;
}

.dr24-collapsible-header .warning {
    transform: scale(0.7);
}

.dr24-collapsible-header .caret {
    transition: transform 0.3s ease;
}

.dr24-collapsible-header.active .caret {
    transform: rotate(180deg);
}

/*Checkout fields css*/

.d24-file-upload {
    display: none;
}

.dr24-collapsible-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dr24-details,
.dr24-details__grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .dr24-details {
        grid-template-columns: 1fr;
    }
}

.dr24-details h3 {
    margin: 0;
    font-size: 1.2rem;
}

.dr24-details__card {
    padding: 1.5rem 1rem;
    background: rgba(var(--primary-color), 0.05);
    border: 1px solid rgba(var(--primary-color), 0.3);
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    gap: 0.5rem;
}

.dr24-simple__content {
    margin-bottom: 1.5rem;
}

#billing_wooccm11_field .woocommerce-radio-wrapper br {
    display: none !important;
}

#billing_wooccm11_field .woocommerce-radio-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

#billing_wooccm11_field .woocommerce-input-wrapper input[type="radio"] {
    display: none;
}

#billing_wooccm11_field .woocommerce-input-wrapper label {
    display: block;
    padding: 1rem;
    border: 1px solid rgba(var(--primary-color), 0.5);
    border-radius: 0.5rem;
    cursor: pointer;
}

#billing_wooccm11_field .woocommerce-input-wrapper label:hover {
    background: rgba(var(--primary-color), 0.1);
}

#billing_wooccm11_field .woocommerce-input-wrapper input[type="radio"]:checked + label {
    background: rgba(var(--primary-color), 0.3);
}

#is_catalog {
    display: none !important;
    &+p {
        display: none;
    }
}

.dr24-sending {
    opacity: 0.5;
    cursor: not-allowed;
}