/* Main Wrapper */
.ds-thankyou-wrapper {
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Inter', sans-serif;
  color: #333;
  padding: 0 20px;
}

/* Card Style */
.ds-thankyou-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  text-align: center;
}

/* Header Section */
.ds-thankyou-header {
  margin-bottom: 40px;
}

.ds-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #d8ede9;
  /* Light pink background */
  color: #1b8772;
  /* Accent color */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.ds-success-icon svg {
  width: 40px;
  height: 40px;
}

.ds-thankyou-title {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.ds-thankyou-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Order Info Grid */
.ds-order-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 25px 0;
  margin-bottom: 40px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.ds-info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ds-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  font-weight: 600;
}

.ds-info-value {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

/* Section Titles */
.ds-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  text-align: left;
  margin-bottom: 20px;
}

/* Order Details & Customer Details */
.ds-order-details,
.ds-customer-details {
  text-align: left;
  margin-bottom: 40px;
}

.ds-order-items {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.ds-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.ds-order-item:last-child {
  border-bottom: none;
}

.ds-item-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.ds-item-image {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
}

.ds-item-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.ds-item-domain {
  font-size: 13px;
  color: #1b8772;
  margin-top: 2px;
}

.ds-item-price {
  font-weight: 700;
  color: #111;
  font-size: 14px;
}

/* Order Totals */
.ds-order-totals {
  max-width: 100%;
  margin-left: auto;
}

.ds-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.ds-total-row.discount {
  color: #27ae60;
}

.ds-total-row.final {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-weight: 700;
  font-size: 18px;
  color: #000;
}

/* Customer Details */
.ds-customer-email {
  font-size: 15px;
  color: #555;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
  display: inline-block;
  margin: 0;
}

/* Actions */
.ds-thankyou-actions {
  margin-top: 40px;
}

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ds-btn-primary {
  background: #1b8772;
  color: #fff;
  border: none;
}

.ds-btn-primary:hover {
  background: #366348;
  transform: translateY(-2px);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ds-thankyou-card {
    padding: 30px 20px;
  }

  .ds-order-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .ds-order-totals {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .ds-order-info-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ds-info-item {
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
  }

  .ds-info-item:last-child {
    border-bottom: none;
  }
}

/* Custom Pix Container */
.ds-pix-custom {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.ds-pix-header {
  margin-bottom: 25px;
}

.ds-pix-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 5px;
}

.ds-pix-desc {
  font-size: 14px;
  color: #666;
}

.ds-pix-qr-wrapper {
  margin-bottom: 25px;
  background: #fff;
  padding: 15px;
  display: inline-block;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ds-pix-qr-wrapper img {
  max-width: 200px;
  height: auto;
  display: block;
}

.ds-pix-code-group {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.ds-pix-code-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.ds-pix-input-row {
  display: flex;
  gap: 10px;
}

.ds-pix-input {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #333;
  font-family: inherit;
  outline: none;
}

.ds-pix-input:focus {
  border-color: #1b8772;
  box-shadow: 0 0 0 3px rgba(255, 0, 102, 0.1);
}

.ds-btn-copy {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ds-btn-copy:hover {
  background: #000;
}

.ds-btn-copy.copied {
  background: #27ae60;
}

#ds-hidden-mechanisms {
  display: none !important;
}
