/*
Theme Name: Loobek Child
Theme URI: https://example.com
Description: Child theme for Loobek. Used for safe customizations.
Author: Dattmedi Products Pvt Ltd
Author URI: https://yourwebsite.com
Template: loobek
Version: 1.0.0
*/

/* Mobile accordion CSS */
/*@media (max-width: 767px) {
    .custom-tab-buttons {
        display: none !important;
    }
    .custom-tabs .accordion-tab {
        border: 1px solid #000;
        margin-bottom: 10px;
        border-radius: 0px;
        overflow: hidden;
    }
    .accordion-tab-header {
        background: #E6202D;
		color: #fff;
        padding: 12px 15px;
        cursor: pointer;
        font-weight: 600;
        text-transform: uppercase;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .accordion-tab-body {
        display: none;
        padding: 12px 15px;
        background: #fff;
    }
    .accordion-tab.active .accordion-tab-body {
        display: block;
    }
}*/
@media (max-width: 767px) {
    .custom-tab-buttons {
        display: none !important;
    }

    .custom-tabs .accordion-tab {
        border: 0px solid #000;
        margin-bottom: 10px;
        border-radius: 0px;
        overflow: hidden;
    }

    .accordion-tab-header {
        background: #E6202D;  
        color: #fff;
        padding: 12px 15px;
        cursor: pointer;
        font-weight: 600;
        text-transform: uppercase;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background 0.3s ease; 
    }

    .accordion-tab-header:hover {
        background: #000;
    }

    .accordion-tab-body {
        display: none;
        padding: 12px 15px;
        background: #fff;
    }

    .accordion-tab.active .accordion-tab-body {
        display: block;
    }

    .accordion-tab-header::after {
        content: "+"; 
        font-weight: bold;
        font-size: 18px;
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    .accordion-tab.active .accordion-tab-header::after {
        content: "–"; 
    }
	.accordion-tab-body {
        display: none;
        padding: 12px 15px;
        background: #fff;
        border: 1px solid #000; 
        border-top: none; 
    }
	
}





.woocommerce-Address .address-action {
    margin-top: 20px;
}

.woocommerce-Address .address-action .button.edit {
    display: inline-block;
    background-color: #E6202D; 
    padding: 0px 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.woocommerce-Address .address-action .button.edit:hover {
    background-color: #000; 
}






/* Address cards grid */
.address-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .address-cards {
    grid-template-columns: 1fr;
  }
}

/* Each card */
.address-card {
  border: 1.5px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Radio + Name in same line */
.address-card label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* Radio */
.address-card input[type="radio"] {
  accent-color: #E6202D;  
  transform: scale(1.2);
  margin: 0;
}

/* Name beside radio */
.address-card strong {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

/* Rest of address under name */
.address-card .card-content {
  margin-left: 28px; /* align with name */
  margin-top: 5px;
  line-height: 1.4;
  font-size: 14px;
  color: #444;
}

/* Phone smaller */
.address-card .addr-phone {
  margin-bottom: 3px;
  color: #666;
  font-size: 13px;
}

/* Edit link */
.address-card .card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
}

.address-card .edit-address {
  font-size: 14px;
  color: #E6202D;
  text-decoration: none;
}

.address-card .edit-address:hover {
  text-decoration: underline;
}

/* Selected state: whole card border red */
.address-card input[type="radio"]:checked ~ strong {
  color: #E6202D;
}

.address-card input[type="radio"]:checked ~ .card-content {
  font-weight: 500;
}

.address-card input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid #E6202D;
  border-radius: 6px;
  pointer-events: none;
}

/* Add new address card */
.address-card.add-new {
  border: 1.5px solid #999;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-card.add-new a {
  color: #E6202D;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}

.address-card.add-new a:hover {
  text-decoration: underline;
}

.policy-agreement {
  margin-top: 20px;
  font-size: 14px;
  color: #333;
}
.policy-agreement input[type="checkbox"] {
  accent-color: red; /* makes checkbox red */
  margin-right: 6px;
}
.policy-agreement a {
  color: red;
  text-decoration: none;
}
.policy-agreement a:hover {
  text-decoration: underline;
}

.policy-agreement label {
  display: flex;
  align-items: center;  /* makes text and checkbox align in the middle */
  gap: 6px;             /* space between checkbox and text */
  cursor: pointer;
}

.policy-agreement input[type="checkbox"] {
  accent-color: red; /* red checkbox */
  margin: 0;         /* reset extra margin */
  transform: scale(1.1); /* optional: make checkbox a bit larger */
}

.policy-agreement label {
  display: flex;
  align-items: flex-start;  /* checkbox pinned to top */
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.policy-agreement input[type="checkbox"] {
  margin-top: 3px;   /* small alignment tweak */
  flex-shrink: 0;    /* checkbox never shrinks */
}

.policy-agreement .policy-text {
  flex: 1;            
  word-break: break-word;
}


.delivery-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;   
}

#additional_policy_checkbox_field label.checkbox,
#additional_policy_checkbox_field label.checkbox a {
    display: inline !important;
    white-space: nowrap;
}


