* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: white;
  color: black;
  line-height: 1.6;
}

.textshadow {
  text-shadow: 1px 1px 5px black;
}

.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
}

h1.page-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  color: black;
}
h3.page-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: black;
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.payment-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: black;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: black;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(255, 0, 150, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: black;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(255, 0, 150, 1);
  box-shadow: 0 0 0 3px rgba(255, 0, 150, 0.2);
}

.card-number-group {
  position: relative;
}

.card-icons {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
}

.card-icon {
  width: 30px;
  height: 20px;
  background: #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.visa {
  background: #1a1f71;
  color: white;
}

.mastercard {
  background: #eb001b;
  color: white;
}

.security-code-group {
  position: relative;
}

.security-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 20px;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #666;
}

.terms-text {
  font-size: 0.9rem;
  color: #666;
  margin: 20px 0;
}

.complete-purchase-btn {
  background: rgba(255, 0, 150, 1);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 0px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 0, 150, 0.4);
  margin-top: 15px;
}

.complete-purchase-btn:hover {
  background: rgba(255, 0, 150, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 150, 0.5);
}

.theme-selection {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.theme-selector {
  position: relative;
  margin-bottom: 30px;
}

.theme-select {
  width: 100%;
  padding: 15px 50px 15px 15px;
  border: 2px solid rgba(255, 0, 150, 0.3);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  background: white;
  color: black;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.3s ease;
}

.theme-select:hover {
  border-color: rgba(255, 0, 150, 1);
  box-shadow: 0 6px 20px rgba(255, 0, 150, 0.2);
}

.theme-select:focus {
  outline: none;
  border-color: rgba(255, 0, 150, 1);
  box-shadow: 0 0 0 3px rgba(255, 0, 150, 0.2);
}

.theme-selector::after {
  content: "▼";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 0, 150, 1);
  font-size: 1.2rem;
  pointer-events: none;
  font-weight: bold;
}

.theme-preview {
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.theme-preview:hover {
  transform: translateY(-5px);
}

.theme-image {
  width: 100%;
  height: 300px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #666;
  position: relative;
  overflow: hidden;
}

.vistaro-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.growtheory-bg {
  background: linear-gradient(135deg, #0f0f0f 0%, #434343 100%);
  color: white;
}

.theme-mockup {
  width: 90%;
  height: 80%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.theme-mockup img {
  max-width: 100%;
}

.theme-info {
  padding: 20px;
  background: white;
}

.theme-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: black;
}

.theme-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.theme-price {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 0, 150, 1);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Estilo base */
.order-summary {
  display: block;
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid rgba(255, 0, 150, 0.3);
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}

/* Quando selecionado */
input[type="radio"]:checked + .order-summary {
  background: rgba(255, 0, 150, 0.1);
  border: 2px solid rgba(255, 0, 150, 0.4);
}

/* Hover opcional */
.order-summary:hover {
  border-color: rgba(255, 0, 150, 0.5);
}
.summary-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: black;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem;
}

.summary-total {
  font-weight: 700;
  font-size: 1.2rem;
  color: rgba(255, 0, 150, 1);
}
.page-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}
.page-title-wrapper img {
  max-width: 50px;
}

.loading-bg, .error-bg{
  position: fixed;
  width: 100dvw;
  height: 100dvh;
  background: rgba(255, 0, 150, 1);
  color: white;
  top: 0px;
  left: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.error-bg kbd{
  background: rgb(255, 83, 183);
  color: white;
  padding: 4px;
}

.loader {
  width: 40px;
  height: 20px;
  --c:no-repeat radial-gradient(farthest-side,#fff 93%,#ffff);
  background:
    var(--c) 0    0,
    var(--c) 50%  0;
  background-size: 8px 8px;
  position: relative;
  clip-path: inset(-200% -100% 0 0);
  animation: l6-0 1.5s linear infinite;
}
.loader:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 12px;
  background: #fff;
  left: -16px;
  top: 0;
  animation: 
    l6-1 1.5s linear infinite,
    l6-2 0.5s cubic-bezier(0,200,.8,200) infinite;
}
.loader:after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff; 
  animation: l6-3 1.5s linear infinite;
}
@keyframes l6-0 {
  0%,30%  {background-position: 0  0   ,50% 0   }
  33%     {background-position: 0  100%,50% 0   }
  41%,63% {background-position: 0  0   ,50% 0   }
  66%     {background-position: 0  0   ,50% 100%}
  74%,100%{background-position: 0  0   ,50% 0   }
}
@keyframes l6-1 {
  90%  {transform:translateY(0)}
  95%  {transform:translateY(15px)}
  100% {transform:translateY(15px);left:calc(100% - 8px)}
}
@keyframes l6-2 {
  100% {top:-0.1px}
}
@keyframes l6-3 {
  0%,80%,100% {transform:translate(0)}
  90%         {transform:translate(26px)}
}

@media (max-width: 768px) {
  .checkout-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  h1.page-title {
    font-size: 2rem;
  }
  h3.page-title {
    font-size: 1rem;
  }

  .payment-section,
  .theme-selection {
    padding: 20px;
  }
}