/* 
 * License page component styles — scoped entirely to .license-v2
 * This file is loaded ONLY on license.html and has zero effect on any other page.
 *
 * Dark mode follows the existing app pattern: [data-bs-theme="dark"] selector
 * set by scripts.js on document.documentElement.
 */

/* =====================================================================
   SECTION — Background, spacing, navbar clearance
   ===================================================================== */

.license-v2 {
  background: linear-gradient(135deg, #6A82FB 1%, #FC5C7D 100%);
  background: var(--s3-site-gradient, linear-gradient(135deg, #6A82FB 1%, #FC5C7D 100%));
  padding-top: 96px;   /* clears the fixed navbar (~65-70px) safely */
  padding-bottom: 80px;
  /* min-height: 100vh; */
  /* Override the flat color from .bg-secondary */
  background-color: transparent;
}

[data-bs-theme="dark"] .license-v2 {
  background: linear-gradient(135deg, rgba(53, 28, 96, 0.9) 0%, rgba(34, 34, 34, 0.9) 100%);
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */

.license-v2 .lp-hero {
  text-align: center;
  padding-bottom: 40px;
}

.license-v2 .lp-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.license-v2 .lp-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 14px;
}

.license-v2 .lp-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 767px) {
  .license-v2 {
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .license-v2 .lp-title {
    font-size: 32px;
  }
}

/* =============================================================
   License page — inline styles extracted from license.html
   These were originally in a <style> block; moved here so they
   apply both on the standalone license.html and via the SPA router.
   ============================================================= */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Form section fade-in animation */
.form-section {
  animation: licensePageFadeIn 0.3s ease;
}

@keyframes licensePageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.license-v2-error {
  position: relative;
}

.license-v2-card .license-v2-error {
  padding-right: 32px !important;
}

.license-v2-error-close {
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.license-v2-error-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Error message shake animation */
.error-message.show {
  animation: licensePageShake 0.5s ease;
}

@keyframes licensePageShake {
  0%,  100% { transform: translateX(0); }
  25%        { transform: translateX(-10px); }
  75%        { transform: translateX(10px); }
}

/* Input placeholder colour */
.license-v2 input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Hide reCAPTCHA badge (invisible widget) */
.grecaptcha-badge {
  display: none !important;
}

/* License form positioning */
.license-form {
  position: relative;
}

#totalPrice.license-v2-price-status,
#renewalTotalDisplay.license-v2-price-status {
  font-size: 16px;
  line-height: 1.35;
}

.license-v2-device-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#renewalQuantityStatus {
  color: #dc3545;
  font-size: 13px;
}

html:not([data-bs-theme="dark"]) .license-v2-card #renewalDeviceBreakdown {
  color: var(--license-v2-text);
}

@media (max-width: 480px) {
  .license-v2-device-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }


}

/* =============================================================
   Payment modals — used by license page (position: fixed)
   ============================================================= */

.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.payment-modal.show {
  opacity: 1;
  visibility: visible;
}

.payment-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.payment-modal-content {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 650px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  z-index: 1;
  margin: 0;
  flex-shrink: 0;
}

.payment-modal.show .payment-modal-content {
  transform: translateY(0);
}

.payment-modal-header {
  padding: 30px 30px 20px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 5px;
  line-height: 1;
}

.payment-modal-close:hover {
  opacity: 1;
}

.payment-success-icon {
  font-size: 60px;
  color: #4ade80;
  margin-bottom: 15px;
  display: block;
  animation: paymentSuccessPulse 2s ease-in-out;
}

.payment-error-icon {
  font-size: 60px;
  color: #f87171;
  margin-bottom: 15px;
  display: block;
  animation: paymentErrorShake 0.6s ease-in-out;
}

@keyframes paymentSuccessPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

@keyframes paymentErrorShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

.payment-modal-title {
  color: white;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.payment-modal-body {
  padding: 20px 30px;
}

.payment-modal-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.payment-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.payment-detail-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.payment-detail-item:last-child {
  margin-bottom: 0;
}

.payment-detail-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.payment-detail-value {
  color: white;
  font-weight: 600;
  display: block;
  max-width: 90vw;
  overflow-x: auto;
  white-space: pre-line;
  word-break: break-all;
  padding-bottom: 2px;
}

.payment-modal-footer {
  padding: 20px 30px 30px;
  text-align: center;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.payment-modal-footer .btn {
  min-width: 120px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-modal-footer .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.payment-modal-footer .btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.payment-modal-footer .btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.payment-modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@media (max-width: 768px) {
  .payment-modal-content {
    width: 95%;
    max-width: 95%;
    margin: 10px;
  }

  .payment-modal-header,
  .payment-modal-body,
  .payment-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .payment-modal-title {
    font-size: 24px;
  }

  .payment-success-icon,
  .payment-error-icon {
    font-size: 50px;
  }

  .payment-modal-footer {
    flex-direction: column;
  }

  .payment-modal-footer .btn {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .payment-modal-content {
    width: 90%;
    max-width: 650px;
  }
}


/* Account identity shares the existing checkout surface and CTA theme tokens. */
.license-v2-card .license-v2-account {
  border: 0;
  padding-block: 20px; margin-block: 20px;
  color: var(--license-v2-text, rgba(255, 255, 255, 0.9));
  text-align: left;
}
.license-v2-card .license-v2-account p { margin: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; color: var(--license-v2-muted, rgba(255, 255, 255, 0.7)); }
.license-v2-account [hidden] { display: none !important; }
.payment-modal .license-v2-key-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block: 14px; }
.payment-modal .license-v2-key-actions > span { flex-basis: 100%; font-size: 13px; opacity: 0.85; }
.payment-modal .license-v2-key-actions code { flex: 1; min-width: 0; padding: 0; background: transparent; color: inherit; overflow-wrap: anywhere; }
.payment-modal .license-v2-key-actions button { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; background: rgba(255, 255, 255, 0.12); color: inherit; }
.payment-modal .license-v2-key-actions button:hover { background: rgba(255, 255, 255, 0.22); }
/* Keep purchase content within the existing page shell. */
body.page-license .license-v2-section { align-items: flex-start; }
@media (min-width: 768px) { .license-v2-device-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Account purchase details stay inside the existing payment dialog on narrow screens. */
.payment-modal-content { display: flex; flex-direction: column; max-height: 90dvh; }
.payment-modal-header, .payment-modal-footer { flex-shrink: 0; }
.payment-modal-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width:thin; scrollbar-color:var(--account-border) transparent; }
.payment-detail-value { overflow-wrap: anywhere; }


/* Compact purchase/renewal forms; keep the site's existing surfaces and accents. */
.license-v2-card .license-v2-field { margin-bottom: 14px; }
.license-v2-card .license-v2-field label { margin-bottom: 6px; }
.license-v2-card .license-v2-input-wrap input[type],
.license-v2-card .license-v2-input-wrap select { height: 42px; padding-block: 9px; font-size: 15px; }
.license-v2-card .license-v2-input-wrap select { width: 100%; border: 1px solid var(--license-v2-border, rgba(255,255,255,.25)); border-radius: 10px; background: var(--account-surface); color: var(--account-text); padding-inline: 12px; color-scheme: light; }
[data-bs-theme="dark"] .license-v2-card select { color-scheme: dark; }
.license-v2-card .license-v2-input-wrap select option { color: var(--account-text); background: var(--account-surface); }
.license-v2-card select:focus-visible { outline: 2px solid var(--s3-primary-cta-accent); outline-offset: 2px; }
.license-v2-device-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.license-v2-device-fields .license-v2-device-card { display: block; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; }
.license-v2-device-card label { margin-bottom: 2px !important; }
.license-v2-device-price { display:flex; align-items:baseline; gap:4px; white-space:nowrap; font-size:13px; line-height:18px; margin-bottom:6px; color:var(--license-v2-muted, rgba(255,255,255,.7)); }
.license-v2-device-price-amount { display:block; flex-shrink:0; color:var(--account-text); font-size:18px; font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; }
.license-v2-device-price-basis { display:block; flex-shrink:0; font-size:11px; font-weight:400; line-height:1.3; }
.license-v2-device-card .license-v2-stepper { display: flex; height: 38px; border: 1px solid var(--license-v2-border, rgba(255,255,255,.25)); border-radius: 8px; overflow: hidden; background: transparent; }
.license-v2-device-card .license-v2-stepper input[type] { flex: 1; width: 0; min-width: 0; height: 100%; padding: 0 2px; border: 0; border-radius: 0; text-align: center; background: transparent; font-size: 15px; }
.license-v2-device-card .license-v2-stepper-btn { flex: 0 0 30px; padding: 0; border: 0; background: transparent; color: var(--account-text); font-size: 20px; line-height: 1; }
.license-v2-stepper-btn:hover { background: var(--license-v2-surface-raised, rgba(255,255,255,.06)); }
.license-v2-stepper-btn:focus-visible { outline: 2px solid var(--s3-primary-cta-accent); outline-offset: -2px; }
.license-v2-card .license-v2-account { padding-block: 0; margin-block: 0 18px; }
.license-v2-card .license-v2-promo-btn { padding-block: 8px; min-height: 42px; }
body.page-license .license-v2-total-row { margin-block: 10px 14px; }
.license-v2-total-row .license-v2-price { font-size: 24px; }
#totalPrice.license-v2-price-status { font-size: 14px; line-height: 1.4; max-width: 230px; }
.license-v2-card .license-v2-submit-btn { min-height: 44px; padding-block: 10px; }
.license-v2-card .license-v2-error { padding-block: 4px !important; margin-bottom: 10px !important; max-height: 60px; overflow-y: auto; }
.license-v2-tab:focus-visible { outline: 2px solid var(--s3-primary-cta-accent); outline-offset: -5px; }
.license-v2-card [hidden] { display: none !important; }
html:not([data-bs-theme="dark"]) .license-v2-device-price { color: var(--license-v2-muted, rgba(12,24,51,.7)); }
@media (min-width: 992px) {
  body.page-license .license-v2-section { align-items: center; padding-bottom: 12px !important; }
  body.page-license .license-v2-section .container { transform: none; }
  .license-v2-content-col, .license-v2-card-col { padding-block: 0; }
}
@media (max-width: 575px) {
  .license-v2-device-fields { gap: 6px; }
  .license-v2-device-fields .license-v2-device-card { padding: 0; }
  .license-v2-device-card .license-v2-stepper-btn { flex-basis: 24px; }
}

/* Keep optional promo feedback within the compact summary. */
.license-v2-card #purchasePriceBreakdown, .license-v2-card #renewalPriceBreakdown { margin-bottom: 6px !important; }
.license-v2-card #purchasePriceBreakdown > div, .license-v2-card #renewalPriceBreakdown > div { display: inline-flex !important; gap: 8px; margin: 0 14px 0 0 !important; }
.license-v2-card #purchasePriceBreakdown hr, .license-v2-card #renewalPriceBreakdown hr { display: none; }

.license-v2-stepper-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Shared purchase and renewal card layout. */
.license-v2-section .license-v2-card {
  --license-panel-inset: 32px;
  padding: var(--license-panel-inset);
}
.license-form .license-v2-device-fields {
  gap: 24px;
  margin-bottom: 28px;
}
.license-form .license-v2-account {
  margin-bottom: 28px;
}
.license-form #purchaseAccountStatus { margin-top:12px; }
.license-form .license-v2-promo-field {
  display: block;
  margin-bottom: 0;
}
.license-form .license-v2-promo-field label {
  display: block;
  margin-bottom: 8px;
}
.license-v2-promo-field .license-v2-input-wrap {
  min-width: 0;
}
.license-form .license-v2-promo-btn {
  flex: 0 0 auto;
}
body.page-license .license-form hr.license-v2-divider {
  display: block;
  margin: 24px 0;
  background-color: var(--license-v2-border, var(--account-border));
  opacity: 1;
}
body.page-license .license-form .license-v2-total-row {
  margin: 0 0 24px;
  padding-block: 4px;
}
@media (max-width: 575px) {
  .license-v2-section .license-v2-card {
    --license-panel-inset: 24px;
    padding: var(--license-panel-inset);
  }
  .license-form .license-v2-device-fields {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 359px) {
  .license-v2-promo-field > div:first-of-type {
    flex-wrap: wrap;
  }
  .license-v2-promo-field .license-v2-input-wrap {
    flex-basis: 100% !important;
  }
}

/* Make room for the optional discount row on shorter desktop screens. */
@media (min-width: 992px) and (max-height: 800px) {
  .license-v2-card .has-promo-summary .license-v2-device-fields { margin-bottom: 16px; }
  .license-v2-card .has-promo-summary .license-v2-account { margin-bottom: 12px; }
  .license-v2-card .has-promo-summary .license-v2-field { margin-bottom: 12px; }
  body.page-license .has-promo-summary .license-v2-total-row { margin-block: 6px 10px; }
}

body.page-license .license-v2-secure-payment { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 14px 0 0; color: var(--license-v2-muted, var(--account-muted)); font-size: 12px; line-height: 18px; }
.license-v2-manual-action { display: block; margin: 8px 0 16px; padding: 0; border: 0; background: transparent; color: var(--s3-primary-cta-accent); font-size: 13px; }
.license-v2-manual-action:focus-visible { outline: 2px solid var(--s3-primary-cta-accent); outline-offset: 3px; }

/* Both modes use the existing Buy columns, card and scrolling shell. Safe
   alignment keeps additional renewal fields reachable on short desktops. */
body.page-license.page-renewal .license-v2-section { align-items:safe center; }
@media(min-width:992px) {
  body.page-license.page-renewal .license-v2-section { --license-header-clearance:104px; padding-top:var(--license-header-clearance) !important; }
  .page-renewal .license-v2-content-col { position:sticky; top:calc(var(--license-hero-offset,208px) - var(--license-header-clearance)); align-self:flex-start; }
}
.page-renewal .license-v2-card { --renewal-panel-inline-inset:20px; color:var(--account-text); padding-inline:var(--renewal-panel-inline-inset); }
.page-renewal .license-v2-tabs { margin-inline:calc(0px - var(--renewal-panel-inline-inset)); }
@media(max-width:575px) {
  .page-renewal .license-v2-card { --renewal-panel-inline-inset:16px; }
}.renewal-heading { margin-bottom:14px; }
#renewalForm { text-align:left; }
.license-v2-card #renewalForm p { color:var(--license-v2-muted,var(--account-muted)); }
.license-v2-card #renewalForm .renewal-section-label,
.license-v2-card #renewalSelectedSummary { color:var(--account-text); }
.license-v2-card #renewalForm .renewal-caption a { color:var(--account-text); text-decoration:underline; text-underline-offset:3px; }
.license-v2-card #renewalManualToggle { display:inline-flex; align-items:center; justify-content:flex-end; gap:6px; color:var(--s3-primary-cta-accent); font-weight:600; text-decoration:none; border-radius:3px; }
.license-v2-card #renewalManualToggle::after { content:''; flex-shrink:0; width:5px; height:5px; margin-right:2px; border-top:1.5px solid currentColor; border-right:1.5px solid currentColor; transform:rotate(45deg); }
.license-v2-card #renewalManualToggle:hover { text-decoration:underline; text-underline-offset:3px; }
html:not([data-bs-theme="dark"]) .license-v2-card #renewalManualToggle { color:#6A2EFA; }
.renewal-heading h2 { font-size:22px; line-height:1.25; color:var(--account-text); margin:0 0 6px; font-weight:700; }
.renewal-heading p,.renewal-caption,.renewal-summary { color:var(--license-v2-muted,var(--account-muted)); font-size:13px; line-height:1.5; }
.renewal-heading p { margin:0; }
.renewal-caption { display:block; margin:6px 0 10px; overflow-wrap:anywhere; }
.renewal-caption p { margin:8px 0 0; }
.renewal-caption a { color:var(--s3-primary-cta-accent); font-weight:600; }
.renewal-expiration { display:grid; grid-template-columns:1fr 1fr; gap:16px; border:1px solid var(--account-border); border-radius:12px; padding:12px; margin:12px 0 10px; background:var(--account-soft); }
.renewal-expiration span { display:block; font-size:12px; color:var(--license-v2-muted,var(--account-muted)); margin-bottom:5px; }
.renewal-expiration strong { font-size:15px; color:var(--account-text); }
.renewal-section-label { margin:12px 0 8px; font-size:14px; font-weight:500; line-height:inherit; color:var(--account-text); }
.renewal-summary p { margin:0 0 7px; }
.renewal-manual { border-left:2px solid var(--s3-primary-cta-accent); padding-left:14px; }
.license-v2-card #renewalOwnedLicense { appearance:none; -webkit-appearance:none; padding-right:36px; text-overflow:ellipsis; }
.renewal-term-select::after { content:''; position:absolute; right:15px; top:50%; width:7px; height:7px; border-right:2px solid var(--account-muted); border-bottom:2px solid var(--account-muted); transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.renewal-term-select:focus-within::after { border-color:var(--s3-primary-cta-accent); }
.license-v2-card #renewalDeviceFields .license-v2-device-card { display:flex; flex-direction:column; }
.license-v2-card #renewalDeviceFields .license-v2-device-price { margin-top:auto; }
.license-v2-card #renewalCapacityHelp { margin-bottom:8px; }
.license-v2-card #renewalForm input:-webkit-autofill { -webkit-text-fill-color:var(--account-text); box-shadow:0 0 0 1000px var(--account-surface) inset; }
.license-v2-card #renewBtn { display:flex; justify-content:center; align-items:center; gap:8px; white-space:normal; }
.license-v2-card #renewBtnText { min-width:0; line-height:1.35; }
.license-v2-card #renewBtn .fa-arrow-right { flex-shrink:0; }
.page-renewal .license-v2-card { color-scheme:light; }
[data-bs-theme="dark"] .page-renewal .license-v2-card { color-scheme:dark; }
@media(max-width:575px) {
  .renewal-heading h2 { font-size:22px; }
  .renewal-expiration { gap:10px; padding:12px; }
}

/* Renewal shares Buy's card; only its middle region scrolls on desktops. */
body.page-license.license-renewal-viewport .license-v2-section { overflow:hidden; align-items:flex-start; padding-top:var(--renewal-card-top) !important; }
.license-renewal-viewport .license-v2-section .row { align-items:flex-start; }
.license-renewal-viewport .license-v2-content-col { position:relative; top:var(--renewal-hero-offset); }
.license-renewal-viewport .license-v2-card { display:flex; flex-direction:column; max-height:var(--renewal-card-height); }
.license-renewal-viewport .license-v2-tabs { flex-shrink:0; }
.license-renewal-viewport #renewal-section, .license-renewal-viewport #renewalForm { display:flex !important; flex-direction:column; min-height:0; }
.license-renewal-viewport .renewal-card-content { min-height:0; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:var(--account-border) transparent; padding:6px; }
.renewal-card-content:focus-visible { outline:2px solid var(--s3-primary-cta-accent); outline-offset:2px; }
.renewal-card-checkout { flex-shrink:0; }
body.page-license .renewal-card-checkout hr.license-v2-divider { margin:16px 0; }
body.page-license .renewal-card-checkout .license-v2-total-row { margin:0 0 12px; }
.renewal-card-checkout .license-v2-price { min-height:1em; }
.renewal-card-content .license-v2-manual-action { margin:6px 0 10px; font-size:12px; }
.renewal-field-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; }
.license-v2-card .renewal-field-heading label { flex-shrink:0; margin:0; }
.renewal-card-content .renewal-field-heading .license-v2-manual-action { margin:0; text-align:right; line-height:1.4; }
.renewal-card-content .license-v2-field { margin-bottom:14px; }
.renewal-card-content .renewal-expiration { padding:10px 12px; margin-block:10px; }
.renewal-card-content .renewal-caption { font-size:12px; margin-block:5px; }
.renewal-card-content .license-v2-device-fields { margin-bottom:12px; }
body.page-license.license-renewal-flow, .license-renewal-flow #page-view { height:auto !important; min-height:100dvh; overflow:visible !important; }
body.page-license.license-renewal-flow .license-v2-section { height:auto !important; overflow:visible; align-items:flex-start; }
.license-renewal-flow .license-v2-content-col { position:static; }

.page-renewal #renewal-section { animation:none; }

.renewal-expiration > small { grid-column:1 / -1; color:var(--license-v2-muted,var(--account-muted)); font-size:11px; }

.renewal-heading { margin-bottom:10px; }
.renewal-card-content #renewalOwnedLicense { height:42px; padding-block:8px; }
.renewal-card-content .renewal-expiration { row-gap:6px; }

/* Transaction downloads share the existing compact success-dialog surfaces. */
.license-v2-documents { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--account-border); }
.license-v2-documents h4 { margin: 0 0 5px; font-size: 15px; color: var(--s3-primary-cta-color); }
.license-v2-documents p { margin: 0 0 10px; font-size: 13px; color: var(--s3-primary-cta-color); }
.license-v2-document-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.license-v2-document-actions .btn { flex: 1; white-space: normal; min-height: 42px; }
.license-v2-documents [role="status"]:empty { display: none; }
.license-v2-documents [role="status"] { margin: 8px 0 0; }
@media (max-width: 480px) { .license-v2-document-actions { flex-direction: column; } }

.license-v2-payment-progress { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--account-border); border-radius: 8px; background: var(--account-soft); color: var(--account-text); font-size: 13px; }

.license-v2-card [role="tabpanel"]:focus-visible { outline: 2px solid var(--s3-primary-cta-accent); outline-offset: 6px; }
