/*
 Theme Name:   RevTheme
 Theme URI:    https://revdot.ai/
 Description:  Theme for dash.revdot.ai
 Author:       Revdot
 Author URI:   https://revdot.ai/
 Template:     bricks
 Version:      1.0
 Text Domain:  revdash
*/

:root {
  --bricks-border-color: #616161 !important;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  /* keeps it responsive */
}

.plan-header-left {
  flex: 1;
}

.plan-header-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  flex: 2;
}

.my-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.plan-content {
  flex: 1;
  /* take up available space */
}

.plan-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-buttons-inline {
  margin-top: auto;
  /* pushes this div to the bottom */
  padding-top: 20px;
  /* optional spacing */
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* or space-evenly if you want them spread out */
  gap: 15px;
  margin: 20px 0 30px;
}

.plan-button {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: #111 !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.plan-button:hover {
  background: var(--color-border);
}

.plan-button.cancel {
  background: #c0392b;
}

.pricing20_feature {
  padding-left: 20px;
}

.plan-features h3 {
  margin-top: 0;
}

.back-to-subs {
  display: inline-block;
  margin-bottom: 20px;
  color: #fff;
  text-decoration: none;
}

/* Container */
.rd-payment-form {
  max-width: 700px;
  margin: 0 auto;
}

/* Subtitle */
.rd-payment-subtitle {
  color: #aaa;
  margin-bottom: 20px;
}

/* Payment method cards */
.rd-payment-methods {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.rd-payment-card {
  display: block;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px 20px;
  background: #111;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rd-payment-card:hover {
  border-color: #666;
  background: #181818;
}

.rd-payment-radio {
  display: none;
}

.rd-payment-radio:checked+.rd-payment-card-content,
.rd-payment-card input:checked~.rd-payment-card-content {
  border-left: 4px solid #0075c7;
  /* highlight color */
  padding-left: 16px;
}

/* Card content */
.rd-payment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rd-payment-title {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}

.rd-payment-icon img {
  max-height: 20px;
}

.rd-payment-description {
  font-size: 13px;
  color: #aaa;
  margin-top: 6px;
}

/* Payment fields (Stripe, etc.) */
.rd-payment-fields {
  display: none;
  /* hidden by default */
}

/* Submit button */
.rd-payment-submit {
  text-align: right;
}

.rd-button-primary {
  background: #0075c7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rd-button-primary:hover {
  background: #005a99;
  color: #fff;
}

/* Stripe field wrapper (outside iframe) */
.wc-stripe-elements-field,
.wc-stripe-iban-element-field {
  border: 1px solid #333 !important;
  background-color: #1a1a1a !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.wc-stripe-elements-field.StripeElement--focus {
  border-color: #0075c7 !important;
  box-shadow: 0 0 0 1px #0075c7 !important;
}

/* Error state */
.wc-stripe-elements-field.StripeElement--invalid {
  border-color: #ff4d4d !important;
}

.rd-plan {
  background: #111;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
}

.rd-plan h2 {
  color: #0075c7;
  margin-bottom: 20px;
}

.rd-plan-info p {
  margin: 8px 0;
  font-size: 15px;
}

.rd-order-item-link {
  color: #0075c7;
  text-decoration: none;
  font-weight: 600;
}

.rd-order-item-link:hover {
  text-decoration: underline;
}