/* ===============================
   ✨ GAYA UMUM FORM CHECKOUT
   =============================== */
.woocommerce-checkout .form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.woocommerce-checkout .form-row label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
  font-size: 0.95rem;
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff!important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
  outline: none;
}

.woocommerce-checkout .form-row .required {
  color: #dc3545;
  margin-left: 2px;
}

/* ===============================
   ✨ FIELD INLINE (2 KOLOM)
   =============================== */

/* --- Billing: Nama depan & nama belakang --- */
#billing_first_name_field,
#billing_last_name_field {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}
#billing_first_name_field { margin-right: 4%; }

/* --- Billing: Kode pos & telepon --- */
#billing_postcode_field,
#billing_phone_field {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}
#billing_postcode_field { margin-right: 4%; }

/* --- Shipping: Nama depan & nama belakang --- */
#shipping_first_name_field,
#shipping_last_name_field {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}
#shipping_first_name_field { margin-right: 4%; }

/* --- Shipping: Kode pos & (jika ada telepon) --- */
#shipping_postcode_field,
#shipping_phone_field {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}
#shipping_postcode_field { margin-right: 4%; }

/* ===============================
   📱 RESPONSIF (Mobile)
   =============================== */
@media (max-width: 768px) {
  #billing_first_name_field,
  #billing_last_name_field,
  #billing_postcode_field,
  #billing_phone_field,
  #shipping_first_name_field,
  #shipping_last_name_field,
  #shipping_postcode_field,
  #shipping_phone_field {
    width: 100%;
    margin-right: 0;
    display: block;
  }
}



/* === Style shipping method agar seperti radio Bootstrap === */
.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-shipping-methods li {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.woocommerce-shipping-methods li:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Radio button gaya Bootstrap */
.woocommerce-shipping-methods input[type="radio"].shipping_method {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid #6c757d;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.woocommerce-shipping-methods input[type="radio"].shipping_method:checked {
    border-color: #0d6efd;
    background-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.woocommerce-shipping-methods label {
    flex: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #212529;
}

.woocommerce-shipping-methods label span.amount {
    font-weight: 600;
    color: #0d6efd;
}

/* Responsif agar rapi di mobile */
@media (max-width: 576px) {
    .woocommerce-shipping-methods li {
        flex-direction: column;
        align-items: flex-start;
    }

    .woocommerce-shipping-methods label {
        margin-left: 0;
        margin-top: 6px;
    }
}


/* woocommerce  */
.table-woo tr th, .table-woo tr td {
    /* text-align: center!important; */
    vertical-align: middle!important;
}

.product-thumbnail img {
    max-width: 75px;
    height: auto;
}


/* ===== WooCommerce My Account Navigation - Underline Style ===== */
.entry-content .woocommerce .woocommerce-MyAccount-navigation {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

/* Layout horizontal */
.entry-content .woocommerce .woocommerce-MyAccount-navigation ul {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 2px solid #dee2e6;
}

/* Hilangkan style li */
.entry-content .woocommerce .woocommerce-MyAccount-navigation li {
  margin: 0 0.25rem;
  padding: 0;
}

/* Link style */
.entry-content .woocommerce .woocommerce-MyAccount-navigation li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: #495057;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: all 0.25s ease;
}

/* Hover effect (garis bawah muncul halus) */
.entry-content .woocommerce .woocommerce-MyAccount-navigation li a:hover {
  color: #0d6efd;
}

.entry-content .woocommerce .woocommerce-MyAccount-navigation li a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #0d6efd;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Active tab — garis bawah biru */
.entry-content .woocommerce .woocommerce-MyAccount-navigation li.is-active a,
.entry-content .woocommerce .woocommerce-MyAccount-navigation li a[aria-current="page"] {
  color: #0d6efd;
  font-weight: 600;
}

.entry-content .woocommerce .woocommerce-MyAccount-navigation li.is-active a::after,
.entry-content .woocommerce .woocommerce-MyAccount-navigation li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  background-color: #0d6efd;
  border-radius: 2px;
}

/* Responsif */
@media (max-width: 600px) {
  .entry-content .woocommerce .woocommerce-MyAccount-navigation ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: none;
    scrollbar-width: none;
  }

  .entry-content .woocommerce .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  .entry-content .woocommerce .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }

  .entry-content .woocommerce .woocommerce-MyAccount-navigation li a::after {
    display: none; /* hilangkan garis di mobile untuk tampilan rapi */
  }
}

/* ===== Style khusus untuk menu Logout ===== */
.entry-content .woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #dc3545; /* Merah bootstrap */
  font-weight: 600;
}

.entry-content .woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::after {
  background-color: #dc3545; /* Garis bawah merah */
}

.entry-content .woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  color: #b02a37; /* Merah lebih gelap saat hover */
}

/* Tambahkan efek hover underline merah juga */
.entry-content .woocommerce .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  background-color: #b02a37;
  border-radius: 2px;
}

/* ===== PAGINATION ===== */

.woocommerce-pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
}

.woocommerce-pagination .page-numbers li {
  display: inline-block;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  color: #555;
  border: 1px solid #ddd;
  background-color: #fff;
  transition: all 0.2s ease;
}

/* Hover effect */
.woocommerce-pagination .page-numbers a:hover {
  background-color: #0073aa;
  border-color: #0073aa;
  color: #fff;
}

/* Current (active) page */
.woocommerce-pagination .page-numbers.current {
  background-color: #0073aa;
  border-color: #0073aa;
  color: #fff;
  font-weight: 600;
  cursor: default;
}

/* Dots (…) */
.woocommerce-pagination .page-numbers.dots {
  background: none;
  border: none;
  color: #999;
  cursor: default;
}

/* Next & Prev buttons */
.woocommerce-pagination .page-numbers.next,
.woocommerce-pagination .page-numbers.prev {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
  .woocommerce-pagination .page-numbers a,
  .woocommerce-pagination .page-numbers span {
    padding: 8px 10px;
    font-size: 13px;
  }
}