/* Variables */
.hidden {
  display: none;
}
/* Order Summary Styles */
.order-item-image-placeholder {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.order-item-image-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#payment-message {
  color: rgb(105, 115, 134);
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}
#payment-element {
  margin-bottom: 24px;
}
/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #031927;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #031927;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}
/* 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: #031927;
}
#retry-button {
  text-align: center;
  background: #031927;
  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;
  }
}

/* ===== Discount Card ===== */
.discount-card .discount-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.discount-card .discount-input-row input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
}
.discount-card .discount-input-row input[type="text"]:focus {
  border-color: #031927;
  box-shadow: 0 0 0 3px rgba(3, 25, 39, 0.08);
}
.btn-discount-apply {
  background: #031927;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.btn-discount-apply:hover { opacity: 0.9; }
.btn-discount-apply:disabled { opacity: 0.6; cursor: not-allowed; }

.discount-applied-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
}
.discount-applied-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.discount-applied-label { color: #065f46; font-size: 13px; }
.discount-applied-code {
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.discount-applied-value {
  font-weight: 700;
  color: #047857;
  font-size: 14px;
}
.btn-discount-remove {
  background: transparent;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}
.btn-discount-remove:hover { background: #fee2e2; }
.btn-discount-remove:disabled { opacity: 0.6; cursor: not-allowed; }

.discount-message {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.discount-message.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.discount-message.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.rest-plata-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}
.rest-plata-label {
  font-size: 14px;
  font-weight: 600;
  color: #30313D;
}
.rest-plata-value {
  font-size: 18px;
  font-weight: 700;
  color: #031927;
}
.rest-plata-value.is-free {
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Free Checkout Card ===== */
.free-card .free-card-note {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #30313D;
  line-height: 1.5;
}
.btn-pay-free {
  background: #047857;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-pay-free:hover { opacity: 0.92; }
.btn-pay-free:disabled { opacity: 0.6; cursor: not-allowed; }
#free-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
#free-message.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
#free-message.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
