
.vp-cart-page {
  min-height: 80vh;
  background: #f1f4f8;
  padding: 40px 0 60px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vp-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .vp-cart-layout {
    grid-template-columns: 1fr;
  }
}

.vp-cart-main {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.vp-cart-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.vp-cart-subtitle {
  font-size: 13px;
  color: #2563eb;
  margin: 0 0 4px;
  font-style: italic;
}

.vp-cart-support {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 20px;
}

.vp-cart-loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.vp-cart-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: vp-spin 0.7s linear infinite;
}

@keyframes vp-spin {
  to {
    transform: rotate(360deg);
  }
}

.vp-cart-empty {
  text-align: center;
  padding: 60px 0 40px;
  color: #6b7280;
}

.vp-cart-empty-icon {
  font-size: 52px;
  margin-bottom: 12px;
}

.vp-cart-empty p {
  font-size: 15px;
  margin: 0 0 20px;
}

.vp-cart-back-shop {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.vp-cart-back-shop:hover {
  background: #1d4ed8;
  color: #fff;
}

.vp-cart-table-wrap {
  overflow-x: auto;
}

.vp-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vp-cart-table thead tr {
  background: #dbeafe;
  border-radius: 8px;
}

.vp-cart-table thead th {
  padding: 12px 14px;
  font-weight: 600;
  color: #1e40af;
  text-align: left;
  white-space: nowrap;
}

.vp-cart-table thead th:first-child {
  border-radius: 8px 0 0 8px;
}

.vp-cart-table thead th:last-child {
  border-radius: 0 8px 8px 0;
}

.vp-cart-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.vp-cart-table tbody tr:hover {
  background: #f9fafb;
}

.vp-cart-table tbody tr:last-child {
  border-bottom: none;
}

.vp-cart-table td {
  padding: 14px;
  vertical-align: middle;
}

.vp-col-check {
  width: 40px;
}

.vp-checkbox-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  width: 20px;
  height: 20px;
}

.vp-checkbox-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.vp-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vp-checkbox-wrap input:checked + .vp-checkmark {
  background: #2563eb;
  border-color: #2563eb;
}

.vp-checkbox-wrap input:checked + .vp-checkmark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.vp-cart-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.vp-cart-product-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #f9fafb;
}

.vp-cart-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vp-cart-product-name {
  font-weight: 600;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
}

.vp-cart-product-name a {
  color: inherit;
  text-decoration: none;
}

.vp-cart-product-name a:hover {
  color: #2563eb;
}

.vp-cart-product-meta {
  font-size: 12px;
  color: #9ca3af;
}

.vp-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.vp-qty-btn {
  background: #f9fafb;
  border: none;
  width: 28px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.vp-qty-btn:hover {
  background: #e5e7eb;
}

.vp-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vp-qty-input {
  width: 36px;
  height: 32px;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  outline: none;
  background: #fff;
  -moz-appearance: textfield;
}

.vp-qty-input::-webkit-outer-spin-button,
.vp-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.vp-price-cell {
  white-space: nowrap;
}

.vp-price-vnd {
  display: block;
  font-weight: 600;
  color: #111827;
  font-size: 14px;
}

.vp-price-usd {
  display: block;
  font-size: 11px;
  color: #10b981;
  font-weight: 500;
}

.vp-total-vnd {
  display: block;
  font-weight: 700;
  color: #2563eb;
  font-size: 14px;
}

.vp-total-usd {
  display: block;
  font-size: 11px;
  color: #10b981;
  font-weight: 500;
}

.vp-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #d1d5db;
  padding: 6px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-delete-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

.vp-cart-footer-row {
  display: flex;
  align-items: center;
  padding: 14px 0 0;
  font-size: 14px;
  color: #374151;
}

.vp-cart-count-label {
  font-weight: 500;
}

.vp-cart-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 100px;
}

.vp-cart-voucher-label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 500;
}

.vp-cart-voucher-row {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
}

.vp-cart-voucher-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 13px;
  color: #111827;
  background: #fff;
}

.vp-cart-voucher-btn {
  background: #2563eb;
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 0% 100%);
}

.vp-cart-voucher-btn:hover {
  background: #1d4ed8;
}

.vp-cart-confirm-btn {
  width: 100%;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.vp-cart-confirm-btn:hover {
  background: #4b5563;
}

.vp-cart-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 16px 0;
}

.vp-cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.vp-cart-summary-row:last-child {
  margin-bottom: 0;
}

.vp-summary-label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.vp-summary-vnd {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: right;
}

.vp-summary-discount-name {
  font-size: 13px;
  color: #6b7280;
  text-align: right;
}

.vp-summary-discount-vnd {
  font-size: 14px;
  font-weight: 600;
  color: #ef4444;
  text-align: right;
}

.vp-summary-final .vp-summary-label {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.vp-summary-final-vnd {
  font-size: 18px;
  font-weight: 800;
  color: #2563eb;
  text-align: right;
}

.vp-cart-email-label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 500;
}

.vp-cart-email-label .required {
  color: #ef4444;
}

.vp-cart-email-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #111827;
  outline: none;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.vp-cart-email-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vp-cart-checkout-btn {
  width: 100%;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vp-cart-checkout-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.vp-cart-footer-row {
  justify-content: space-between;
}

.vp-delete-selected-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid #ef4444;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.vp-delete-selected-btn:hover {
  background: #ef4444;
  color: #fff;
}

@media (max-width: 768px) {
  .vp-cart-layout {
    grid-template-columns: 1fr;
  }

  .vp-cart-sidebar {
    width: 100%;
    min-width: unset;
    position: static;
  }
}

@media (max-width: 480px) {
  .vp-cart-page {
    padding: 16px 0 32px;
  }

  .vp-cart-main {
    padding: 14px 10px 12px;
    border-radius: 8px;
  }

  .vp-cart-title {
    font-size: 18px;
  }

  .vp-cart-table-wrap {
    overflow-x: hidden;
    width: 100%;
  }

  .vp-cart-table {
    width: 100%;
    table-layout: fixed;
  }

  .vp-col-check {
    width: 28px;
  }
  .vp-col-qty {
    display: none;
  }
  .vp-col-price {
    display: none;
  }
  .vp-col-action {
    width: 32px;
  }
  .vp-col-total {
    width: 90px;
  }

  .vp-cart-table thead th {
    padding: 8px 6px;
    font-size: 11px;
  }

  .vp-cart-table td {
    padding: 10px 6px;
  }

  .vp-cart-product-thumb {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .vp-cart-product-cell {
    min-width: unset;
    gap: 8px;
  }

  .vp-cart-product-name {
    font-size: 12px;
    word-break: break-word;
  }

  .vp-cart-product-meta {
    font-size: 11px;
  }

  .vp-checkmark {
    width: 16px;
    height: 16px;
  }

  .vp-delete-btn {
    padding: 4px;
  }

  .vp-cart-footer-row {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
  }

  .vp-cart-count-label {
    font-size: 13px;
  }

  .vp-delete-selected-btn {
    font-size: 12px;
    padding: 5px 10px;
  }

  .vp-cart-sidebar {
    padding: 16px 14px;
    border-radius: 8px;
  }

  .vp-summary-final-vnd {
    font-size: 16px;
  }

  .vp-cart-voucher-row {
    flex-direction: column;
    border: none;
    gap: 8px;
    overflow: visible;
  }

  .vp-cart-voucher-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .vp-cart-voucher-btn {
    width: 100%;
    border-radius: 8px;
    clip-path: none;
    padding: 10px;
    text-align: center;
  }

  .vp-cart-checkout-btn {
    font-size: 14px;
    padding: 12px;
  }
}


.vp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}

body.vp-modal-open {
  overflow: hidden;
}

.vp-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: vp-modal-in 0.22s ease;
}

@keyframes vp-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vp-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
  line-height: 1;
}

.vp-modal-close:hover {
  color: #374151;
  background: #f3f4f6;
}

.vp-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px;
}

.vp-modal-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 24px;
}

.vp-modal-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vp-method-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.15s;
}

.vp-method-btn:not(.vp-method-disabled):hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.vp-method-btn:not(.vp-method-disabled):active {
  transform: translateY(0);
}

.vp-method-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vp-method-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.vp-method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vp-method-info strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.vp-method-info small {
  font-size: 12px;
  color: #6b7280;
}

.vp-method-arrow {
  font-size: 18px;
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}

.vp-method-badge {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #e5e7eb;
  border-radius: 20px;
  padding: 3px 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.vp-method-crypto:not(.vp-method-disabled) {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.vp-method-crypto:not(.vp-method-disabled):hover {
  border-color: #2563eb !important;
  background: #dbeafe !important;
}

.vp-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0 8px;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 480px) {
  .vp-modal-box {
    padding: 24px 18px 22px;
    border-radius: 14px;
  }

  .vp-modal-title {
    font-size: 17px;
  }

  .vp-method-btn {
    padding: 13px 14px;
    gap: 10px;
  }

  .vp-method-icon {
    font-size: 22px;
    width: 28px;
  }

  .vp-method-info strong {
    font-size: 14px;
  }
}


.vp-login-modal-box {
  text-align: center;
  max-width: 420px;
}

.vp-login-modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  line-height: 1;
}

.vp-login-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.vp-btn-login-go {
  display: block;
  background: var(--vp-primary, #2563eb);
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 0;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
}

.vp-btn-login-go:hover {
  background: var(--vp-primary-dark, #1d4ed8);
  transform: translateY(-1px);
}

.vp-btn-login-cancel {
  background: transparent;
  border: 1.5px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.92rem;
  padding: 10px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.vp-btn-login-cancel:hover {
  border-color: #9ca3af;
  color: #374151;
}


.vp-email-locked {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  border-color: #e5e7eb !important;
  user-select: none;
}

.vp-email-locked:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: #e5e7eb !important;
}
