.login-wrapper {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  min-height: 80vh;
  background-color: #f5f5f5;
  overflow: hidden;
}

.login-card {
  margin: 0 auto;
  padding: 38px 21px;
  max-width: 450px;
  width: 100%;
  color: #000000;
  background-color: #ffffff;
  border-radius: 12px;
}

@media only screen and (min-width: 451px) {
  .login-card {
    border: 1px solid #f5f5f5;
    padding: 38px;
  }
}

.login-main h1 {
  padding-bottom: 40px;
  text-align: center;
}

.login-main h1 a img {
  max-width: 120px;
  display: inline-block;
}

.login-container {
  opacity: 1;
  -webkit-transition:
    height 300ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transition:
    height 300ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.textfield-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.textfield {
  width: 100%;
  outline: 1px solid transparent;
  border: 1px solid #dedede;
  border-top-color: #dedede;
  border-left-color: #dedede;
  border-right-color: #dedede;
  padding: 14px 11px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-transition:
    padding 200ms ease-in-out,
    border-color 200ms ease-in-out,
    outline-color 200ms ease-in-out;
  transition:
    padding 200ms ease-in-out,
    border-color 200ms ease-in-out,
    outline-color 200ms ease-in-out;
}

.textfield:focus {
  outline-color: var(#005bd3);
  border-color: var(#005bd3);
}

.textfield::-webkit-input-placeholder {
  color: var(#000000a8);
}

.textfield::-moz-placeholder {
  color: var(#000000a8);
}

.textfield:-ms-input-placeholder {
  color: var(#000000a8);
}

.textfield::-ms-input-placeholder {
  color: var(#000000a8);
}

.textfield::placeholder {
  color: var(#000000a8);
}

.textfield-label {
  position: absolute;
  z-index: 1;
  top: var(--label-inset-block-start);
  left: var(--label-inset-inline-start);
  color: var(--x-textfield-text-color-subdued);
  font-size: var(--label-font-size);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  opacity: 0;
  display: block;
  -webkit-transform: translateY(0.2142857143em);
  transform: translateY(0.2142857143em);
  -webkit-transition:
    opacity 200ms ease-in-out,
    -webkit-transform 200ms ease-in-out;
  transition:
    opacity 200ms ease-in-out,
    -webkit-transform 200ms ease-in-out;
  transition:
    opacity 200ms ease-in-out,
    transform 200ms ease-in-out;
  transition:
    opacity 200ms ease-in-out,
    transform 200ms ease-in-out,
    -webkit-transform 200ms ease-in-out;
}

.login-main h2 {
  padding-bottom: 10px;
  font-size: 21px;
}

.wc-otp-login-wrapper {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
}

.otp-login-toggle {
  text-align: center;
  margin-bottom: 15px;
}

.otp-login-toggle a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.otp-login-toggle a:hover {
  color: #005177;
  text-decoration: underline;
}

.otp-login-form h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #333;
  text-align: center;
}

.otp-login-form p {
  margin-bottom: 15px;
}

.otp-login-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.otp-login-form .required {
  color: #ff0000;
}

.otp-login-form input[type="email"],
.otp-login-form input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.otp-login-form input[type="email"]:focus,
.otp-login-form input[type="text"]:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.otp-login-form button {
  padding: 12px 24px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-right: 10px;
}

.otp-login-form button:hover {
  background: #005177;
}

.otp-login-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#resend-otp-btn {
  background: #666;
}

#resend-otp-btn:hover {
  background: #444;
}

#resend-otp-btn:disabled {
  background: #ccc;
}

#otp-countdown {
  margin-top: 15px;
  padding: 10px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
  text-align: center;
}

#otp-countdown strong {
  font-size: 18px;
  color: #ff6b00;
}

#otp-message {
  margin-top: 15px;
}

#otp-message .woocommerce-message,
#otp-message .woocommerce-error {
  padding: 12px;
  margin: 0;
  border-radius: 4px;
  animation: slideIn 0.3s ease;
}

#otp-message .woocommerce-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

#otp-message .woocommerce-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .otp-login-form button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.woocommerce-account .woocommerce {
  display: flex;
  gap: 30px;
}

.woocommerce-MyAccount-navigation {
  width: 230px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 0;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 20px;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: 0.25s ease;
}

.woocommerce-MyAccount-navigation a br {
  display: none;
}

.woocommerce-MyAccount-navigation a:hover {
  background: #f3f4f6;
  border-left-color: #3b82f6;
  color: #1d4ed8;
}

.woocommerce-MyAccount-navigation .is-active a {
  background: #eff6ff;
  border-left-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
}

.woocommerce-MyAccount-content {
  flex: 1;
  /* background: #fff; */
  /* border: 1px solid #e5e7eb; */
  padding: 0;
  border-radius: 12px;
  min-height: 400px;
}

.woocommerce-Address-title h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.woocommerce-Address-title .edit {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  margin-left: 8px;
}

.woocommerce-Address-title .edit:hover {
  text-decoration: underline;
}

.woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.woocommerce-Address {
  background: #f9fafb;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}

.woocommerce-orders-table thead th {
  background: #f3f4f6;
  font-weight: 600;
  padding: 14px 16px;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce-orders-table td,
.woocommerce-orders-table th.woocommerce-orders-table__cell {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce-orders-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.woocommerce-orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.woocommerce-orders-table__cell-order-number a {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.woocommerce-orders-table__cell-order-number a:hover {
  text-decoration: underline;
}

.woocommerce-orders-table__cell-order-status {
  font-weight: 500;
  color: #6b7280;
}

.woocommerce-orders-table__cell-order-total {
  font-weight: 600;
}

.woocommerce-orders-table__cell-order-actions a.button {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 6px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: 0.2s ease;
  border: none;
}

.woocommerce-orders-table__cell-order-actions a.button:after {
  content: none;
}

.woocommerce-orders-table__cell-order-actions .button.pay {
  background: #16a34a;
  color: #fff;
}
.woocommerce-orders-table__cell-order-actions .button.pay:hover {
  background: #15803d;
}

.woocommerce-orders-table__cell-order-actions .button.view {
  background: #3b82f6;
  color: #fff;
}
.woocommerce-orders-table__cell-order-actions .button.view:hover {
  background: #2563eb;
}

.woocommerce-orders-table__cell-order-actions .button.cancel {
  background: #dc2626;
  color: #fff;
}
.woocommerce-orders-table__cell-order-actions .button.cancel:hover {
  background: #b91c1c;
}

.woocommerce-orders-table__cell-order-actions a.button:last-child {
  margin-right: 0;
}

.woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
  display: block;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.woocommerce form .form-row {
  margin-bottom: 18px;
  margin-right: 0 !important;
}

.woocommerce form .form-row label {
  font-weight: 500;
  font-size: 15px;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}

/* Input fields */
.woocommerce form .input-text {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 15px;
  transition: 0.2s;
}

.woocommerce form .input-text:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.woocommerce form em {
  font-size: 13px;
  color: #6b7280;
}

.form-row-first,
.form-row-last {
  width: calc(50% - 10px);
}

.form-row-first {
  float: left;
}
.form-row-last {
  float: right;
}

.clear {
  clear: both;
  display: block !important;
}

.woocommerce-EditAccountForm fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-top: 25px;
  background: #fafafa;
}

.woocommerce-EditAccountForm fieldset legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 16px;
  color: #111827;
  margin: 0 !important;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 40px !important;
}

.password-input .show-password-input {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border: none;
  background: url("data:image/svg+xml,%3Csvg fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M1.5 12s4.5-7.5 10.5-7.5 10.5 7.5 10.5 7.5-4.5 7.5-10.5 7.5S1.5 12 1.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")
    no-repeat center;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s;
}

.password-input .show-password-input:hover {
  opacity: 1;
}

.woocommerce form .button {
  background: #2563eb;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}

.woocommerce form .button:after {
  content: none;
}

.woocommerce form .button:hover {
  background: #1d4ed8;
}

.woocommerce-EditAccountForm p:last-of-type {
  margin-top: 20px;
}

.woocommerce-MyAccount-content p {
  font-size: 16px;
  background: #f5f9ff;
  padding: 15px 20px;
  border-left: 4px solid #3498db;
  border-radius: 8px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.woocommerce-MyAccount-content mark {
  background: #fff3cd !important;
  padding: 2px 6px;
  border-radius: 4px;
  color: #856404;
  font-weight: 600;
}

.woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
}

.woocommerce-MyAccount-content table.shop_table th {
  background: #f8f8f8;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
}

.woocommerce-MyAccount-content table.shop_table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 15px;
}

.woocommerce-MyAccount-content tfoot th {
  font-weight: 600;
}

.woocommerce-MyAccount-content table tfoot td {
  text-align: right;
}

.order-actions-button {
  display: inline-block;
  margin-right: 10px;
  padding: 10px 18px;
  border-radius: 8px !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.order-actions-button.pay {
  background: #2ecc71;
  color: #fff !important;
}

.order-actions-button.cancel {
  background: #e74c3c;
  color: #fff !important;
}

.order-actions--heading {
  font-weight: 600;
  font-size: 15px !important;
}

.order-actions-button:hover {
  opacity: 0.85;
}

.order-actions-button:after {
  content: none;
}

.woocommerce-customer-details address {
  padding: 20px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  line-height: 1.7;
  font-size: 15px;
}

.woocommerce-customer-details .woocommerce-column__title {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.woocommerce-customer-details--email {
  margin-top: 8px;
  color: #333;
}

.woocommerce-order-details__title {
  margin-bottom: 15px;
}

.woocommerce-columns.woocommerce-columns--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 768px) {
  .woocommerce-MyAccount-content table.shop_table th,
  .woocommerce-MyAccount-content table.shop_table td {
    padding: 10px 10px;
    width: 100%;
  }

  .woocommerce-order-details__title {
    font-size: 18px;
  }

  .woocommerce-columns.woocommerce-columns--2 {
    grid-template-columns: 1fr;
  }
}

#order_review .shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #eee;
}

#order_review .shop_table thead th {
  background: #f9f9f9;
  font-weight: 600;
  padding: 14px 16px;
  font-size: 15px;
}

#order_review .shop_table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 15px;
}

#order_review .product-name {
  font-weight: 600;
}

#order_review .product-quantity strong {
  background: #eef5ff;
  padding: 4px 10px;
  border-radius: 6px;
}

#order_review tfoot th {
  background: #fafafa;
  padding: 14px 16px;
  font-weight: 600;
}

#order_review tfoot td {
  text-align: right;
  padding: 14px 16px;
  font-weight: 600;
}

#payment {
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fc;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
}

#payment .wc_payment_methods li {
  background: #fff;
  padding: 15px 16px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

#payment .wc_payment_methods label {
  font-weight: 600;
  display: block;
  font-size: 16px;
  cursor: pointer;
}

#payment .payment_box {
  padding: 12px 16px;
  background: #f7faff;
  border-left: 3px solid #3498db;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
}

#payment .input-radio {
  display: none !important;
}

.woocommerce-privacy-policy-text {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #eee;
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.6;
}

.woocommerce-privacy-policy-text a {
  color: #0073aa;
  text-decoration: underline;
}

#place_order {
  width: 100%;
  padding: 16px;
  background: #2ecc71 !important;
  color: #fff !important;
  font-size: 18px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

#place_order:hover {
  background: #27ae60 !important;
  transform: translateY(-1px);
}

#place_order:after {
  content: none;
}

@media (max-width: 768px) {
  #order_review .shop_table td,
  #order_review .shop_table th {
    padding: 10px;
  }

  #payment {
    padding: 15px;
  }

  #place_order {
    font-size: 16px;
    padding: 14px;
  }
}

#customer-account-description {
  padding-bottom: 20px;
  color: #000000a8;
  font-size: 0.92rem;
}

.vgreen-form-login__submit {
  width: 100%;
  min-height: 51px;
  text-align: center;
  background-color: #005bd3;
  color: #fff;
  font-weight: 500;
  border-color: #005bd3;
  border-radius: 8px;
  transition:
    color 200ms ease-in-out,
    background-color 200ms ease-in-out,
    opacity 200ms ease-in-out,
    outline-color 200ms ease-in-out,
    border-color 200ms ease-in-out;
}

.vgreen-form-login__submit:hover {
  background-color: #0045a3;
  border-color: #0045a3;
  cursor: pointer;
}

.woocommerce-info {
  padding: 30px 10px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.woocommerce-info a {
  width: 260px;
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 10px;
  }

  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    width: auto;
    /* padding: 10px 10px; */
  }

  .woocommerce-MyAccount-navigation a {
    padding: 10px 10px;
  }

  .woocommerce-MyAccount-content p {
    padding: 0;
    margin-bottom: 15px;
    font-size: 14px;
    border: none;
    background-color: transparent;
  }

  .woocommerce-account .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
  }

  .woocommerce-account .woocommerce-orders-table thead {
    display: none;
  }

  .woocommerce-account .woocommerce-orders-table tbody tr {
    display: block;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 10px;
  }

  .woocommerce-account .woocommerce-orders-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .woocommerce-account .woocommerce-orders-table tbody tr {
    padding: 10px;
  }

  .woocommerce-account .woocommerce-orders-table td,
  .woocommerce-account .woocommerce-orders-table th {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    text-align: left;
    border: none;
  }

  .woocommerce-account .woocommerce-orders-table td::before,
  .woocommerce-account .woocommerce-orders-table th::before {
    content: attr(data-title);
    font-weight: 600;
    color: #444;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-number a {
    font-weight: bold;
    color: var(--primary, #0073aa);
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions {
    display: block;
    margin-top: 10px;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    margin-right: 0px;
    margin-top: 0px;
    font-size: 13px;
    padding: 10px;
  }

  .woocommerce-Addresses {
    gap: 15px;
    grid-template-columns: 1fr;
  }

  .woocommerce-Address {
    padding: 15px 15px;
  }

  .woocommerce-Address-title h2 {
    margin-bottom: 0;
    font-size: 16px;
  }

  .woocommerce-Address-title .edit {
    margin-left: 0;
    font-size: 12px;
  }

  .woocommerce-Address address {
    margin-top: 10px;
    font-size: 14px;
  }

  .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
    padding: 15px 10px;
  }

  .form-row-first {
    float: none;
    width: 100%;
  }
  .form-row-last {
    float: none;
    width: 100%;
  }

  .woocommerce form .form-row label {
    font-size: 14px;
  }

  #account_display_name_description {
    display: block;
    font-size: 12px;
    margin-top: 5px;
  }

  .woocommerce-EditAccountForm fieldset {
    padding: 15px 10px;
  }

  .login-card {
    padding: 20px 15px;
  }

  .login-main h1 {
    padding-bottom: 25px;
  }

  .login-main h1 a img {
    max-width: 80px;
  }

  .login-main h2 {
    padding-bottom: 7px;
    font-size: 18px;
  }

  #customer-account-description {
    padding-bottom: 15px;
    font-size: 0.85rem;
  }

  .vgreen-form-login__submit {
    font-size: 14px;
  }
}
