.account-banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #fff5eb 0%, #ffe4cc 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid var(--y-main);
}

.banner-img {
  height: 180px;
  width: auto;
  object-fit: contain;
}

.banner-img-left {
  transform: translateX(-20px);
}

.banner-img-right {
  transform: translateX(20px);
}

.account-main {
  min-height: 60vh;
  padding: 2rem 0;
}

.account-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3%;
}

.account-welcome {
  text-align: start;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--y-secondary);
  margin-bottom: 3rem;
}

.section-radio {
  display: none;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.account-sidebar {
  background: transparent;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 100px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--y-color-text-dark);
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar-item i {
  font-size: 1.3rem;
  width: 25px;
  text-align: center;
}

.sidebar-item:hover {
  background: rgba(172, 83, 0, 0.05);
  border-color: rgba(172, 83, 0, 0.2);
  transform: translateX(-5px);
}

#section-profile:checked ~ .account-sidebar label[for="section-profile"],
#section-orders:checked ~ .account-sidebar label[for="section-orders"],
#section-invoice:checked ~ .account-sidebar label[for="section-invoice"],
#section-notifications:checked
  ~ .account-sidebar
  label[for="section-notifications"] {
  background: var(--y-secondary);
  color: white;
  border-color: var(--y-secondary);
}

#section-profile:checked ~ .account-sidebar label[for="section-profile"]:hover,
#section-orders:checked ~ .account-sidebar label[for="section-orders"]:hover,
#section-invoice:checked ~ .account-sidebar label[for="section-invoice"]:hover,
#section-notifications:checked
  ~ .account-sidebar
  label[for="section-notifications"]:hover {
  transform: translateX(-5px);
  background: var(--y-secondary);
}

.logout-item {
  margin-top: 1rem;
  border-top: 2px solid #e0e0e0;
  padding-top: 1.5rem;
  color: #d32f2f;
}

.logout-item:hover {
  background: rgba(211, 47, 47, 0.05);
  border-color: rgba(211, 47, 47, 0.2);
}

.account-content {
  background: transparent;
  border-radius: 16px;
  padding: 2rem;
  min-height: 400px;
}

/* Content sections should be visible by default for WooCommerce */
.content-section {
  display: block !important;
}

/* Ensure WooCommerce My Account content is always visible */
.woocommerce-MyAccount-content {
  display: block !important;
}

.woocommerce-MyAccount-content .content-section {
  display: block !important;
}

#section-profile:checked ~ .account-content #profile-content,
#section-orders:checked ~ .account-content #orders-content,
#section-invoice:checked ~ .account-content #invoice-content,
#section-notifications:checked ~ .account-content #notifications-content {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--y-color-text-dark);
  margin-bottom: 2rem;
}

.profile-form {
  max-width: 800px;
  margin-bottom: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--y-color-text-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--y-main);
  box-shadow: 0 0 0 3px rgba(177, 129, 85, 0.1);
}

.country-text {
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: var(--y-color-text-dark);
}

.btn-save {
  background: var(--y-secondary);
  color: white;
  padding: 0.875rem 3rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-save:hover {
  background: var(--y-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(172, 83, 0, 0.3);
}

.notification-section {
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.notification-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.toggle-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.toggle-content i {
  font-size: 2rem;
  color: var(--y-secondary);
}

.toggle-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--y-color-text-dark);
}

.toggle-text p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: var(--y-secondary);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(30px);
}

.delete-account {
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.delete-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.delete-content i {
  font-size: 2rem;
  color: #d32f2f;
}

.delete-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--y-color-text-dark);
}

.delete-text p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.btn-delete {
  background: transparent;
  color: #d32f2f;
  padding: 0.75rem 2rem;
  border: 2px solid #d32f2f;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-delete:hover {
  background: #d32f2f;
  color: white;
}

.orders-list-view {
  display: block;
}

.order-details-view {
  display: none;
}

.orders-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  overflow-x: auto;
}

.orders-header {
  display: grid;
  grid-template-columns: 120px 180px 180px 150px 180px 140px;
  background: transparent;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--y-color-text-dark);
  margin-bottom: 0;
}

.orders-header .order-col {
  padding: 1rem;
  text-align: center;
  border: none;
  background: transparent;
}

.orders-header .order-col-header {
  padding: 1rem;
  background: transparent;
}

.order-item {
  display: grid;
  grid-template-columns: 120px 180px 180px 150px 180px 140px;
  background: transparent;
  border: 2px solid var(--y-secondary);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.order-item:hover {
  box-shadow: 0 4px 12px rgba(172, 83, 0, 0.2);
  transform: translateY(-2px);
}

.order-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--y-color-text-dark);
  text-align: center;
}

.order-image {
  width: 120px;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 0.5rem;
}

.order-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 100px;
}

.order-number {
  font-weight: 700;
  font-size: 1.1rem;
}

.order-date {
  font-weight: 600;
}

.order-status {
  font-weight: 700;
  color: var(--y-secondary);
}

.order-total {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
}

.total-text {
  font-size: 0.9rem;
  color: var(--y-color-text-dark);
}

.total-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--y-secondary);
}

.order-actions {
  padding: 0.75rem;
}

.btn-view {
  background: transparent;
  color: var(--y-color-text-dark);
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--y-color-text-dark);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-view:hover {
  background: var(--y-color-text-dark);
  color: white;
}

.address-empty-state {
  max-width: 800px;
}

.address-filled-state {
  max-width: 900px;
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.btn-edit {
  background: transparent;
  color: var(--y-secondary);
  padding: 0.75rem 2rem;
  border: 2px solid var(--y-secondary);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-edit:hover {
  background: var(--y-secondary);
  color: white;
}

.address-display-card {
  background: transparent;
  border: 2px solid var(--y-secondary);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  max-width: 700px;
}

.address-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: #d32f2f;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.address-close:hover {
  background: #b71c1c;
  transform: scale(1.1);
}

.address-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--y-color-text-dark);
  margin-bottom: 1.5rem;
  text-align: right;
  padding-left: 3rem;
}

.address-info {
  text-align: center;
  padding: 1rem 0;
}

.address-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--y-color-text-dark);
  margin-bottom: 1rem;
}

.address-line {
  font-size: 1.15rem;
  color: var(--y-color-text-dark);
  margin-bottom: 0.625rem;
  font-weight: 500;
}

/* Address Edit Form - Matching Checkout Form Design */
.address-edit-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.address-edit-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.address-edit-section .section-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3a2c1c;
}

.address-type-label {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.address-form {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Form Fields Design - Matching Checkout Form */
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper .woocommerce-form-row {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper .woocommerce-form-row label {
  display: block;
  color: #3a2c1c !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-align: right !important;
  margin: 0 !important;
  line-height: normal !important;
}

.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="text"],
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="email"],
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="tel"],
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper select,
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper textarea {
  width: 100% !important;
  border: 1px solid #888 !important;
  border-radius: 8px !important;
  padding: 0.8rem !important;
  background-color: transparent !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="text"]:focus,
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="email"]:focus,
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="tel"]:focus,
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper select:focus,
.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper textarea:focus {
  border-color: #b18155 !important;
  box-shadow: 0 0 8px rgba(172, 83, 0, 0.2) !important;
}

.address-form.checkout-form-style .woocommerce-address-fields__field-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

/* Form Actions - Matching Checkout Form */
.address-form-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-start;
}

.address-form-actions .btn-save.btn-primary {
  padding: 0.8rem 2.5rem;
  background: #ac5300;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(172, 83, 0, 0.2);
}

.address-form-actions .btn-save.btn-primary:hover {
  background: #b18155;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(177, 129, 85, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .address-edit-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .address-edit-section .section-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .address-edit-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .address-edit-section .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .address-type-label {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .address-form.checkout-form-style .woocommerce-address-fields__field-wrapper .woocommerce-form-row {
    margin-bottom: 1.25rem;
  }

  .address-form.checkout-form-style .woocommerce-address-fields__field-wrapper .woocommerce-form-row label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="text"],
  .address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="email"],
  .address-form.checkout-form-style .woocommerce-address-fields__field-wrapper input[type="tel"],
  .address-form.checkout-form-style .woocommerce-address-fields__field-wrapper select,
  .address-form.checkout-form-style .woocommerce-address-fields__field-wrapper textarea {
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
  }

  .address-form.checkout-form-style .woocommerce-address-fields__field-wrapper textarea {
    min-height: 120px;
  }

  .address-form-actions .btn-save.btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 25px;
    width: 100%;
  }
}

.order-details-header {
  background: transparent;
  border: 2px solid var(--y-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.order-submitted-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--y-color-text-dark);
  margin: 0;
  line-height: 1.6;
}

.order-details-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.order-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #ccc;
}

.order-details-row:last-child {
  border-bottom: none;
}

.order-details-header-row {
  background: transparent;
  font-weight: 700;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--y-color-text-dark);
}

.order-detail-col {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--y-color-text-dark);
}

.order-details-header-row .order-detail-col {
  font-size: 1.2rem;
  font-weight: 700;
}

.order-address-section {
  background: transparent;
  border: 2px solid var(--y-secondary);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.order-address-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--y-color-text-dark);
  margin-bottom: 1.5rem;
}

.order-address-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-address-info p {
  font-size: 1.1rem;
  color: var(--y-color-text-dark);
  margin: 0;
  font-weight: 500;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1000px;
}

.notification-item {
  position: relative;
  background: transparent;
  border: 2px solid var(--y-secondary);
  border-radius: 16px;
  padding: 1.75rem 3.5rem 1.75rem 1.75rem;
  transition: all 0.3s ease;
}

.notification-item:hover {
  box-shadow: 0 4px 12px rgba(172, 83, 0, 0.2);
  transform: translateY(-2px);
}

.notification-close {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d32f2f;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.notification-close:hover {
  background: #b71c1c;
  transform: translateY(-50%) scale(1.1);
}

.notification-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--y-color-text-dark);
  font-weight: 500;
  margin: 0;
  text-align: right;
}

.notifications-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.notifications-empty i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.notifications-empty p {
  font-size: 1.2rem;
  color: #666;
}

@media (max-width: 992px) {
  .account-banner {
    height: 150px;
    padding: 0 3%;
  }

  .banner-img {
    height: 130px;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .account-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    gap: 0.5rem;
  }

  .sidebar-item {
    flex-shrink: 0;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .sidebar-item span {
    white-space: nowrap;
  }

  .logout-item {
    margin-top: 0;
    border-top: none;
    padding-top: 0.875rem;
    border-left: 2px solid #e0e0e0;
    padding-left: 1rem;
  }

  .account-welcome {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .account-content {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .orders-header {
    grid-template-columns: 100px 150px 150px 130px 160px 120px;
    font-size: 1rem;
  }

  .order-item {
    grid-template-columns: 100px 150px 150px 130px 160px 120px;
  }

  .order-col {
    padding: 1rem 0.75rem;
    font-size: 0.95rem;
  }

  .order-image {
    width: 100px;
  }

  .btn-view {
    padding: 0.45rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 820px) {
  .account-banner {
    height: 140px;
  }

  .banner-img {
    height: 120px;
  }

  .account-welcome {
    font-size: 1.9rem;
  }

  .sidebar-item {
    font-size: 0.95rem;
    padding: 0.8rem 0.95rem;
  }

  .account-content {
    padding: 1.4rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
  }

  .toggle-text strong,
  .delete-text strong {
    font-size: 1.05rem;
  }

  .toggle-text p,
  .delete-text p {
    font-size: 0.9rem;
  }

  .orders-header {
    font-size: 1.05rem;
  }

  .order-col {
    font-size: 0.9rem;
  }

  .order-submitted-text {
    font-size: 1.05rem;
  }

  .order-detail-col {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .account-banner {
    height: 120px;
  }

  .banner-img {
    height: 100px;
  }

  .account-container {
    padding: 0 2%;
  }

  .account-welcome {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .account-sidebar {
    padding: 0.75rem 0.5rem;
  }

  .sidebar-item {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
  }

  .sidebar-item i {
    font-size: 1.1rem;
    width: 20px;
  }

  .account-content {
    padding: 1.25rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .notification-toggle,
  .delete-account {
    flex-direction: column;
    align-items: flex-start;
  }

  .toggle-content,
  .delete-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-delete,
  .btn-edit {
    width: 100%;
    text-align: center;
  }

  .address-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .address-display-card {
    padding: 1.5rem;
  }

  .address-close {
    width: 35px;
    height: 35px;
    top: 1rem;
    left: 1rem;
    font-size: 1rem;
  }

  .address-card-title {
    font-size: 1.1rem;
    padding-left: 2.5rem;
  }

  .address-name {
    font-size: 1.2rem;
  }

  .address-line {
    font-size: 1rem;
  }

  .order-details-header {
    padding: 1.5rem;
  }

  .order-submitted-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .order-details-table {
    max-width: 100%;
  }

  .order-detail-col {
    padding: 1rem 0.875rem;
    font-size: 0.95rem;
  }

  .order-details-header-row .order-detail-col {
    font-size: 1.1rem;
    padding: 1.125rem 1rem;
  }

  .order-address-section {
    padding: 1.75rem;
  }

  .order-address-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }

  .order-address-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .orders-container {
    overflow-x: scroll;
  }

  .orders-header {
    display: none;
  }

  .order-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding: 0;
  }

  .order-image {
    width: 100%;
    height: 150px;
    grid-row: 1;
    grid-column: 1;
  }

  .order-col {
    display: grid;
    grid-template-columns: 120px 1fr;
    text-align: right;
    padding: 0.875rem 1rem;
    border-top: 1px solid rgba(172, 83, 0, 0.2);
  }

  .order-col::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--y-secondary);
    text-align: right;
    padding-left: 1rem;
  }

  .order-number::before {
    content: "رقم الطلب:";
  }

  .order-date::before {
    content: "التاريخ:";
  }

  .order-status::before {
    content: "الحالة:";
  }

  .order-total::before {
    content: "الإجمالي:";
  }

  .order-actions::before {
    content: "إجراءات:";
  }

  .order-total {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .order-actions {
    justify-content: flex-start;
  }

  .btn-view {
    width: auto;
  }
}

@media (max-width: 640px) {
  .account-banner {
    height: 110px;
  }

  .banner-img {
    height: 90px;
  }

  .account-welcome {
    font-size: 1.6rem;
    margin-bottom: 1.4rem;
  }

  .sidebar-item {
    font-size: 0.9rem;
    padding: 0.7rem 0.8rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.875rem;
    font-size: 0.9rem;
  }

  .btn-save {
    padding: 0.7rem 2.5rem;
    font-size: 0.95rem;
  }

  .notification-section,
  .delete-account {
    padding: 1.35rem;
  }

  .toggle-content i,
  .delete-content i {
    font-size: 1.6rem;
  }

  .notification-item {
    padding: 1.4rem 3rem 1.4rem 1.4rem;
  }

  .notification-close {
    width: 36px;
    height: 36px;
  }

  .notification-text {
    font-size: 0.98rem;
  }

  .order-details-header {
    padding: 1.35rem;
  }

  .order-submitted-text {
    font-size: 0.98rem;
  }

  .order-detail-col {
    padding: 0.95rem 0.85rem;
    font-size: 0.93rem;
  }

  .order-address-section {
    padding: 1.6rem;
  }

  .order-address-title {
    font-size: 1.25rem;
  }

  .order-address-info p {
    font-size: 0.98rem;
  }
}

@media (max-width: 576px) {
  .account-banner {
    height: 100px;
    padding: 0 1%;
  }

  .banner-img {
    height: 80px;
  }

  .account-main {
    padding: 1rem 0;
  }

  .account-welcome {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .account-sidebar {
    padding: 0.5rem;
    gap: 0.375rem;
  }

  .sidebar-item {
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .sidebar-item i {
    font-size: 1rem;
    width: 18px;
  }

  .logout-item {
    padding-left: 0.75rem;
  }

  .account-content {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
  }

  .btn-save {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    width: 100%;
  }

  .notification-section,
  .delete-account {
    padding: 1.25rem;
  }

  .toggle-content i,
  .delete-content i {
    font-size: 1.5rem;
  }

  .toggle-text strong,
  .delete-text strong {
    font-size: 1rem;
  }

  .toggle-text p,
  .delete-text p {
    font-size: 0.85rem;
  }

  .toggle-switch {
    width: 50px;
    height: 26px;
  }

  .slider:before {
    height: 18px;
    width: 18px;
  }

  .toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
  }

  .order-col {
    grid-template-columns: 100px 1fr;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .order-image {
    height: 120px;
  }

  .btn-view {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .total-text {
    font-size: 0.85rem;
  }

  .total-price {
    font-size: 1rem;
  }

  .address-display-card {
    padding: 1.25rem;
  }

  .address-close {
    width: 32px;
    height: 32px;
    top: 0.875rem;
    left: 0.875rem;
    font-size: 0.9rem;
  }

  .address-card-title {
    font-size: 1rem;
    padding-left: 2.25rem;
    margin-bottom: 1.25rem;
  }

  .address-name {
    font-size: 1.1rem;
  }

  .address-line {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .order-details-header {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .order-submitted-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .order-details-table {
    max-width: 100%;
    margin-bottom: 2.5rem;
  }

  .order-detail-col {
    padding: 0.875rem 0.75rem;
    font-size: 0.9rem;
  }

  .order-details-header-row .order-detail-col {
    font-size: 1.05rem;
    padding: 1rem 0.875rem;
  }

  .order-address-section {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .order-address-title {
    font-size: 1.15rem;
    margin-bottom: 1.125rem;
  }

  .order-address-info p {
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
  }

  .notifications-list {
    gap: 1rem;
  }

  .notification-item {
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    border-radius: 12px;
  }

  .notification-close {
    width: 35px;
    height: 35px;
    left: 0.75rem;
    font-size: 1rem;
  }

  .notification-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .notifications-empty {
    padding: 3rem 1rem;
  }

  .notifications-empty i {
    font-size: 3rem;
  }

  .notifications-empty p {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .account-banner {
    height: 80px;
  }

  .banner-img {
    height: 60px;
  }

  .account-welcome {
    font-size: 1.3rem;
  }

  .sidebar-item {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .order-col {
    grid-template-columns: 90px 1fr;
    padding: 0.625rem;
    font-size: 0.85rem;
  }

  .order-col::before {
    font-size: 0.85rem;
  }

  .notification-item {
    padding: 1.25rem 2.75rem 1.25rem 1.25rem;
  }

  .notification-close {
    width: 32px;
    height: 32px;
    left: 0.5rem;
    font-size: 0.9rem;
  }

  .notification-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .address-display-card {
    padding: 1rem;
  }

  .address-close {
    width: 30px;
    height: 30px;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
  }

  .address-card-title {
    font-size: 0.95rem;
    padding-left: 2rem;
  }

  .address-name {
    font-size: 1rem;
  }

  .address-line {
    font-size: 0.9rem;
  }

  .order-details-header {
    padding: 1rem;
    border-radius: 8px;
  }

  .order-submitted-text {
    font-size: 0.9rem;
  }

  .order-detail-col {
    padding: 0.875rem 0.75rem;
    font-size: 0.85rem;
  }

  .order-details-header-row .order-detail-col {
    font-size: 1rem;
  }

  .order-address-section {
    padding: 1.25rem;
  }

  .order-address-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .order-address-info p {
    font-size: 0.95rem;
  }
}

.footer-col p {
  text-align: center;
}

.footer-col li {
  text-align: start;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #f8f8f8;
  padding: 3rem 2rem;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: popupFadeIn 0.3s ease-out;
  border: 1px solid #eee;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 1.5rem;
}

.popup-description {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 3rem;
  line-height: 1.6;
  padding: 0 1rem;
}

.popup-actions {
  display: flex;
  justify-content: center;
  gap: 8rem;
}

.popup-btn {
  padding: 0.8rem 3rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: white;
  transition: all 0.2s ease;
  min-width: 140px;
}

.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-no {
  background-color: #558b2f; 
}

.btn-confirm {
  background-color: #ff3d00;
}

@media (max-width: 768px) {
  .popup-actions {
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .popup-content {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  
  .popup-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .popup-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  .popup-actions {
    gap: 1rem;
    flex-direction: column-reverse;
  }

  .popup-btn {
    width: 100%;
    padding: 0.75rem;
  }
}

/* Unified Addresses Styles */
.addresses-content {
  padding: 2rem 0;
}

.address-description {
  color: var(--y-color-text-dark);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.addresses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.address-card {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.address-card:hover {
  border-color: var(--y-main);
  box-shadow: 0 4px 12px rgba(172, 83, 0, 0.1);
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e8e8;
}

.address-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--y-secondary);
  margin: 0;
}

.btn-edit {
  padding: 0.5rem 1rem;
  background: var(--y-main);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-edit:hover {
  background: var(--y-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(172, 83, 0, 0.2);
}

.address-content {
  color: var(--y-color-text-dark);
  line-height: 1.8;
  font-size: 0.95rem;
}

.address-content address {
  font-style: normal;
  margin: 0;
}

.no-address {
  color: #999;
  font-style: italic;
  margin: 0;
}

.address-type-label {
  color: var(--y-main);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--y-main);
}

@media (max-width: 768px) {
  .addresses-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .address-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .btn-edit {
    width: 100%;
    text-align: center;
  }
}

/* Remove background from search elements on account page */
body.account-page .icons .search-container,
body.account-page .icons .search-submit,
body.account-page .logo-container .search-container {
  background: transparent !important;
  box-shadow: none !important;
}

body.account-page .icons .search-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.account-page .icons .search-submit {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Remove white background from search icon container */
body.account-page .icons .search-container .search-form {
  background: transparent !important;
}

/* Mobile - Remove search background */
@media (max-width: 768px) {
  body.account-page .logo-container .search-container {
    background: transparent !important;
    box-shadow: none !important;
  }
  
  body.account-page .logo-container .search-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  
  body.account-page .logo-container .search-container .search-form {
    background: transparent !important;
  }
}

/* Remove show password buttons from account edit form */
#edit-account-content .show-password-input,
.edit-account .show-password-input,
.password-change .show-password-input {
  display: none !important;
}

/* Remove padding that was added for the button */
#edit-account-content .password-input input[type="password"],
.edit-account .password-input input[type="password"],
.password-change .password-input input[type="password"] {
  padding-right: 0.8rem !important;
}

/* Make MyAccount navigation full width on web (desktop) only */
@media (min-width: 769px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    float: right;
    width: 100% !important;
  }
}