/* Checkout Page Styles - Modern Figma-Inspired Design */

.myaccordion {
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
}

.myaccordion .card,
.myaccordion .card:last-child .card-header {
  border: none;
  background: transparent;
}

.myaccordion .card-header {
  border: none;
  background: transparent;
}

.myaccordion .card-header .heading {
  position: relative;
  font-weight: 300;
  z-index: 0;
}

.myaccordion .card-header .heading h3 {
  font-size: 16px;
  margin-bottom: 0;
  text-align: left;
}


.myaccordion .btn {
  width: 100%;
  font-weight: normal;
  color: #000;
  padding: 0;
  letter-spacing: 0;
  font-size: 18px;
  border-radius: 0 !important;
  border: none;
  position: relative;
}

.myaccordion .btn .icon {
  width: 30px;
  height: 30px;
  z-index: 0;
  background: #fff;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.myaccordion .btn .icon i {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.4);
}

.myaccordion .btn-link:hover,
.myaccordion .btn-link:focus {
  text-decoration: none;
}

[data-toggle="collapse"] .fa:before {
  content: "\f107";
  font-style: normal;
}

[data-toggle="collapse"].collapsed .fa:before {
  content: "\f106";
  font-style: normal;
}



@media (prefers-reduced-motion: reduce) {
  button[aria-expanded="true"] {
    transition: none;
  }
}

button[aria-expanded="true"] .icon {
  background: #28a745 !important;
}

button[aria-expanded="true"] .fa {
  color: #fff !important;
}

button[aria-expanded="false"] {
  background-color: #fff;
}

/* .card-body {
  background: rgba(0, 0, 0, 0.02);
  margin-bottom: 1px;
  border-left: 2px solid #28a745;
} */

.tab {
  float: left;
  background-color: #f1f1f1;
  width: 30%;
}

.tab button {
  display: block;
  background-color: inherit;
  color: black;
  padding: 20px;
  font-size: 20px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #000;
  color: #fff;
}

.tabcontent {
  float: left;
  padding: 0px 12px;
  width: 70%;
  border-left: none;
}

.card {
  margin: auto;
  color: black;
}

.form-control {
  padding: 10px 20px;
  vertical-align: middle;
}

.counter {
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.counter input {
  width: 40px;
  height: 30px !important;
  border: 0;
  line-height: 28px;
  text-align: center;
  appearance: none;
  outline: 0;
}

.counter span {
  display: block;
  font-size: 25px !important;
  padding: 12px 10px 11px;
  line-height: 5px !important;
  cursor: pointer;
  color: #0052cc;
  user-select: none;
  border: 1px solid #ddd;
}

.normal {
  border: 0px;
  padding: 15px 45px 16px;
}

._3M9oYd {
  padding-left: 100px;
  font-size: 14px;
}

._1lc9Fi {
  color: #878787;
}

._1QGDTZ {
  margin: 8px 0;
  color: #212121;
}

.YXdkEF {
  fill: #2874f0;
  color: #2874f0;
  font-size: 17px;
  margin-right: 12px;
  vertical-align: middle;
}

._2XilLp {
  text-transform: uppercase;
  font-size: 11px;
  color: #878787;
  vertical-align: middle;
  padding: 4px 7px;
  border-radius: 2px;
  background-color: #f0f0f0;
  font-weight: 500;
}

/* Radio button styles */
section {
  display: flex;
  flex-flow: row wrap;
}

section>div {
  flex: 1;
  padding: 0.5rem;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:not(:disabled)~.label {
  cursor: pointer;
}

input[type="radio"]:disabled~.label {
  color: hsla(150, 5%, 75%, 1);
  border-color: hsla(150, 5%, 75%, 1);
  box-shadow: none;
  cursor: not-allowed;
}

.label {
  height: 100%;
  display: block;
  background: white;
  border: 2px solid hsla(150, 75%, 50%, 1);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0px 3px 10px -2px hsla(150, 5%, 65%, 0.5);
  position: relative;
}

input[type="radio"]:checked+.label {
  background: hsla(150, 75%, 50%, 1);
  color: hsla(215, 0%, 100%, 1);
  box-shadow: 0px 0px 20px hsla(150, 100%, 50%, 0.75);
}

input[type="radio"]:checked+.label::after {
  color: #3d3f43;
  font-family: FontAwesome;
  border: 2px solid #1dc973;
  content: "✔";
  font-size: 25px;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  width: 40px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  background: white;
  box-shadow: 0px 2px 5px -2px rgb(0 0 0 / 25%);
}

@media only screen and (max-width: 700px) {
  section {
    flex-direction: column;
  }
}

/* ============================================
   FIGMA-INSPIRED MODERN CHECKOUT STYLES
   ============================================ */

/* Modern Typography */
.checkout-page h1,
.checkout-page h2,
.checkout-page h3,
.checkout-page h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-weight: 600;
  color: #1a1a1a;
}

.checkout-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: #333;
}

/* Payment Information Section (Non-logged-in) */
.payment-information-container {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-information-container h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.returning-customer-link {
  display: block;
  margin-bottom: 24px;
  font-size: 14px;
  color: #666;
}

.returning-customer-link a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.returning-customer-link a:hover {
  opacity: 0.7;
}

/* Pay by Card Option */
.pay-by-card-option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 1.5px solid #d1d1d1;
  border-radius: 8px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-by-card-option:hover {
  border-color: #000;
  background-color: #f9f9f9;
}

.pay-by-card-option input[type="radio"] {
  display: inline-block !important;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  opacity: 1 !important;
  position: relative !important;
}

.pay-by-card-option .card-icon {
  width: 24px;
  height: 24px;
  margin-left: auto;
  opacity: 0.6;
}

.pay-by-card-option label {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  flex: 1;
}

/* Modern Form Inputs */
.modern-input-group {
  margin-bottom: 20px;
}

.modern-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}

.modern-input-group input,
.modern-input-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d1d1;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.modern-input-group input:focus,
.modern-input-group select:focus {
  outline: none !important;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.modern-input-group input::placeholder {
  color: #999;
}

/* Input Row for Expiry and CVC */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Delivery Details Button */
.delivery-details-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: white;
  border: 1.5px solid #d1d1d1;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.delivery-details-btn:hover {
  border-color: #000;
  background-color: #f9f9f9;
}

.delivery-details-btn .icon-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-details-btn .delivery-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.delivery-details-btn .arrow-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.delivery-details-btn.expanded .arrow-icon {
  transform: rotate(180deg);
}

/* Order Summary Modern Styling */
.ordersummary {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ordersummary h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.ordersummary .qty li {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ordersummary .qty li:last-child {
  border-bottom: none;
}

.ordersummary h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.ordersummary p {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.ordersummary h5 {
  font-size: 14px;
  font-weight: 600;
}

/* Coupon Input Styling */
.ordersummary .input-group input {
  border: 1.5px solid #d1d1d1;
  border-radius: 6px 0 0 6px;
  padding: 10px 14px;
  font-size: 14px;
}

.ordersummary .input-group-text,
.ordersummary .btn-normal {
  border-radius: 0 6px 6px 0;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
}

.ordersummary .btn-normal {
  background: #000;
  color: white;
  border: none;
}

.ordersummary .btn-normal:hover {
  background: #333;
}

/* Subtotal and Total */
.ordersummary .sub-total li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #666;
}

.ordersummary .total li h3 {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 16px 0;
}

/* Place Order Button */
.place-order-btn {
  width: 100%;
  padding: 16px;
  background: #000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.place-order-btn:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modern Accordion Styling for Logged-in Users */

.myaccordion.modern .card {
  border-radius: 0;
  margin-bottom: 2px;
  overflow: hidden;
}

.myaccordion.modern .card:first-child {
  border-radius: 12px 12px 0 0;
}

.myaccordion.modern .card:last-child {
  border-radius: 0 0 12px 12px;
}

.myaccordion.modern .btn {
  font-size: 16px;
  font-weight: 600;
  padding: 20px 24px !important;
  background: white;
}

.myaccordion.modern .btn h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

/* .myaccordion.modern button[aria-expanded="true"] {
  border-left: 3px solid #000 !important;
  background: #f9f9f9 !important;
}

.myaccordion.modern .card-body {
  background: #fafafa;
  border-left: 3px solid #000;
  padding: 24px !important;
} */

.myaccordion.modern .icon {
  background: #f0f0f0 !important;
  border: none !important;
}

.myaccordion.modern button[aria-expanded="true"] .icon {
  background: #000 !important;
}

/* Modern Form Styling in Accordion */
.myaccordion.modern input[type="text"],
.myaccordion.modern input[type="email"],
.myaccordion.modern input[type="password"],
.myaccordion.modern textarea,
.myaccordion.modern select {
  padding: 12px 16px !important;
  border: 1.5px solid #d1d1d1 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  transition: all 0.2s ease;
  background: white !important;
}

.myaccordion.modern input[type="text"]:focus,
.myaccordion.modern input[type="email"]:focus,
.myaccordion.modern input[type="password"]:focus,
.myaccordion.modern textarea:focus,
.myaccordion.modern select:focus {
  outline: none !important;
  border-color: #000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}

.myaccordion.modern .btn-warning {
  background: #000;
  border: none;
  padding: 12px 32px !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.myaccordion.modern .btn-warning:hover {
  background: #333;
  transform: translateY(-1px);
}

.myaccordion.modern .btn-danger {
  background: #dc3545;
  border: none;
  padding: 12px 32px !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.myaccordion.modern .btn-primary {
  background: #000;
  border: none;
  padding: 12px 24px !important;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
}

.myaccordion.modern .btn-info {
  background: #000;
  border: none;
  padding: 12px 32px !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.myaccordion.modern .btn-info:hover {
  background: #333;
}

/* Address Selection Radio Buttons */
.myaccordion.modern .label {
  border: 2px solid #d1d1d1;
  border-radius: 8px;
  padding: 20px;
  background: white;
  transition: all 0.2s ease;
}

.myaccordion.modern input[type="radio"]:checked+.label {
  background: #f9f9f9;
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.myaccordion.modern .label h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.myaccordion.modern .label p {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.myaccordion.modern ._2XilLp {
  background-color: #000;
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.myaccordion.modern button._2XilLp {
  background-color: transparent;
  color: #000;
  border: 1px solid #000;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 12px;
}

.myaccordion.modern button._2XilLp:hover {
  background-color: #000;
  color: white;
}

/* Counter Buttons Modernization */
.myaccordion.modern .counter span {
  border: 1.5px solid #d1d1d1;
  border-radius: 4px;
  background: white;
  transition: all 0.2s ease;
}

.myaccordion.modern .counter span:hover {
  border-color: #000;
  background: #f9f9f9;
}

/* Responsive Design */
@media (max-width: 991px) {
  .payment-information-container {
    padding: 24px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .myaccordion.modern .btn {
    padding: 16px 20px !important;
  }

  .myaccordion.modern .card-body {
    padding: 20px !important;
  }
}

@media (max-width: 576px) {
  .payment-information-container {
    padding: 20px;
    border-radius: 8px;
  }

  .payment-information-container h3 {
    font-size: 20px;
  }

  .ordersummary {
    padding: 20px;
  }

  .place-order-btn {
    padding: 14px;
    font-size: 15px;
  }
}