/* =========================================================
   Checkout / Payment page
   ========================================================= */
.checkout-wrapper {
  min-height: 100vh;
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 8vh, 80px);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checkout-wrapper .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checkout-main-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checkout-main-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: clamp(4px, 1vh, 8px);
}

.checkout-main-subtitle {
  font-size: clamp(14px, 1.5vw, 15px);
  color: var(--text-light);
  margin-bottom: clamp(16px, 3vh, 24px);
}

.checkout-transition-banner {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  margin-top: clamp(-20px, -2vh, -10px);
  margin-bottom: clamp(-60px, -6vh, -30px);
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.checkout-transition-banner img {
  width: 100%;
  display: block;
  height: auto;
  min-height: clamp(100px, 15vh, 180px);
  object-fit: cover;
}

.checkout-step-indicator {
  margin-bottom: clamp(20px, 4vh, 32px);
  background: #ffffff;
  border: 1.5px solid rgba(124, 77, 255, 0.15);
  border-radius: 12px;
  padding: clamp(16px, 3vh, 24px);
  position: relative;
  z-index: 2;
}

/* Checkout responsive two-column grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: flex-start;
    margin-top: clamp(20px, 4vh, 40px);
}

@media (max-width: 1100px) {
    .checkout-wrapper {
        padding-top: 100px;
        justify-content: flex-start;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: clamp(24px, 4vh, 32px);
    }
    .summary-section {
        order: -1;
    }
}

/* Accordion options style */
.payment-option {
    border: 1.5px solid rgba(124, 77, 255, 0.12);
    border-radius: 16px;
    margin-bottom: clamp(12px, 2vh, 20px);
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-option.active {
    border: 2px solid #7C4DFF;
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.08);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: rgba(124, 77, 255, 0.02);
    user-select: none;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.amount-blue {
    color: #7C4DFF;
    font-weight: 800;
    font-size: 14px;
}

.logos {
    display: flex;
    gap: 6px;
    align-items: center;
}

.logos img {
    height: 28px;
    border: 1px solid rgba(124, 77, 255, 0.1);
    border-radius: 6px;
    padding: 3px 6px;
    background: white;
    object-fit: contain;
}

.chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-dark);
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.payment-option.active .chevron {
    transform: rotate(180deg);
}

.payment-body {
    background-color: #fcfbff;
    padding: clamp(16px, 3vh, 24px) clamp(20px, 4vw, 28px);
    border-top: 1px solid rgba(124, 77, 255, 0.1);
}

@media (max-width: 600px) {
    .payment-header {
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
    }
    .payment-header-right {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    .chevron {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
}

/* Card details form styling */
.form-group {
    margin-bottom: clamp(16px, 3vh, 20px);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-col {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.checkout-input {
    width: 100%;
    height: 52px;
    border: 1.5px solid rgba(124, 77, 255, 0.15);
    border-radius: 12px;
    padding: 0 48px 0 16px;
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.checkout-input:focus {
    border-color: #7C4DFF;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.1);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--text-light);
}

.checkout-input:focus + .input-icon {
    stroke: #7C4DFF;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 20px;
    line-height: 1.5;
}

.security-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    stroke: var(--text-light);
}

/* Security Badges Section */
.security-badges {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(124, 77, 255, 0.02);
    border: 1px dashed rgba(124, 77, 255, 0.15);
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.security-badge svg {
    width: 20px;
    height: 20px;
    stroke: #2e7d32;
    fill: none;
}

/* Crypto Invoice details styling */
.crypto-invoice-card {
    background: #f4f1fa;
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    text-align: center;
}

.address-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1.5px solid rgba(124, 77, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    color: var(--text-dark);
}

.copy-btn {
    background: #7C4DFF;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    margin-left: 10px;
}

.copy-btn:hover {
    background: #651fff;
}

/* Right summary column styles */
.summary-card {
    background: var(--white);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(124, 77, 255, 0.12);
    box-shadow: 0 4px 32px rgba(124, 77, 255, 0.05);
}

@media (max-width: 768px) {
    .summary-card {
        padding: 24px 20px;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-light);
}

.summary-row.discount {
    padding-top: 0;
}

.summary-row.sub-row {
    padding-top: 0;
    font-size: 13px;
}

.discount-text {
    color: #e2001a;
    font-weight: 700;
}

.divider {
    height: 1px;
    background-color: rgba(124, 77, 255, 0.12);
    margin: 16px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: var(--text-dark);
}

.total-label {
    font-weight: 800;
    font-size: 16px;
}

.total-amount {
    font-size: 26px;
    font-weight: 850;
    background: var(--grad-brand-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
