#payment-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  display: block;
}

#payment-message.hidden {
  display: none;
}

#payment-message:not(.hidden) {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

#stripe-order-submit {
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  background-color: #009688;
  border: 1px solid #009688;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#stripe-order-submit:hover:not(:disabled) {
  background-color: #00796b;
  border-color: #00796b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}

#stripe-order-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 150, 136, 0.2);
}

#stripe-order-submit:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
}

#stripe-order-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

#payment-element {
  margin-bottom: 24px;
}

/* spinner/processing state, errors */
.hidden {
  display: none !important;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loading 0.7s linear infinite;
}

/* Payment status page */
#payment-status {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 30px;
  width: 30vw;
  min-width: 500px;
  min-height: 380px;
  align-self: center;
  box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
  border-radius: 7px;
  padding: 40px;
  opacity: 0;
  animation: fadeInAnimation 1s ease forwards;
}

#status-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

#details-table {
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
table tbody tr:first-child td {
  border-top: 1px solid #E6E6E6; /* Top border */
  padding-top: 10px;
}
table tbody tr:last-child td {
  border-bottom: 1px solid #E6E6E6; /* Bottom border */
}
td {
  padding-bottom: 10px;
}

.TableContent {
  text-align: right;
  color: #6D6E78;
}

.TableLabel {
  font-weight: 600;
  color: #30313D;
}

#view-details {
  color: #0055DE;
}

#retry-button {
  text-align: center;
  background: #0055DE;
  color: #ffffff;
  border-radius: 4px;
  border: 0;
  padding: 12px 16px;
  transition: all 0.2s ease;
  box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes fadeInAnimation {
  to {
      opacity: 1;
  }
}

@media only screen and (max-width: 600px) {
  form, #payment-status{
    width: 80vw;
    min-width: initial;
  }
}
.payment-message-error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(248, 113, 113, 0.1));
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    color: #dc2626;
    font-weight: 500;
}
.payment-error-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-error-content::before {
    content: '⚠️';
    font-size: 18px;
}
#payment-form.form-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== Guest Checkout Card (Ai deja un cont? / Comandă fără cont) ===== */
.checkout-guest-card .checkout-auth-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-auth-guest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: #ffffff;
    color: #2d6078;
    border: 1.5px solid #2d6078;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-auth-guest:hover {
    background: #f0f7fa;
    color: #1a3d4e;
    border-color: #1a3d4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 96, 120, 0.15);
}

.checkout-auth-guest svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .checkout-guest-card .checkout-auth-buttons {
        flex-direction: column;
    }
    .checkout-guest-card .checkout-auth-btn {
        width: 100%;
    }
}
