/* Petroleum/lime shared-cart layer; existing cards and purchase controls stay intact. */
.header .topo-cart-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;min-height:48px;padding:9px;border:1px solid var(--brand-line,#4b656b);border-radius:8px;background:var(--brand-deep,#17252b);color:var(--brand-lime,#d3f45b);cursor:pointer}
.topo-cart-toggle svg{width:26px;height:26px;flex:none}.topo-cart-count{position:absolute;top:-7px;right:-7px;min-width:22px;height:22px;padding:0 5px;display:grid;place-items:center;border-radius:20px;background:#d3f45b;color:#17252b;font-size:12px;font-weight:800;line-height:1}
.topo-cart-actions{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:center;margin-top:12px}.topo-cart-actions>:first-child{min-width:0;width:100%;min-height:48px;margin:0}.topo-cart-actions>a.button{justify-content:center;text-align:center;min-height:48px;padding:12px 16px;gap:8px;white-space:nowrap}.topo-cart-actions button.topo-cart-add,.product-content .topo-cart-actions button.topo-cart-add{display:inline-flex;justify-content:center;align-items:center;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:10px;border:1px solid #58727a;border-radius:5px;background:#203940;color:#fff;cursor:pointer}.topo-cart-add svg{display:block;width:26px;height:26px;flex:none;pointer-events:none}.topo-cart-actions button.topo-cart-add[aria-pressed="true"]{background:#d3f45b;color:#17252b;border-color:#d3f45b}.topo-cart-actions button.topo-cart-add:disabled,.product-content .topo-cart-actions button.topo-cart-add:disabled{background:#eaf0ed;color:#58666d;cursor:not-allowed;border-color:#bfcac8;opacity:1}.topo-cart-actions .topo-cart-add:not(:disabled):hover{background:#294650}
.topo-cart-dialog{position:fixed;inset:0 0 0 auto;width:min(100%,520px);max-width:100%;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-left:1px solid #4b656b;background:#17252b;color:#f5f7f6;overflow:auto;box-shadow:-18px 0 60px #0005;overscroll-behavior:contain}.topo-cart-dialog::backdrop{background:#07151bcc;backdrop-filter:blur(3px)}.topo-cart-dialog[open]{display:flex;flex-direction:column}.topo-cart-open{overflow:hidden}.topo-cart-dialog *{box-sizing:border-box}.topo-cart-dialog h2{font-size:26px;letter-spacing:-.025em}.topo-cart-dialog h3{font-size:17px;line-height:1.4;letter-spacing:0}.topo-cart-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px max(22px,env(safe-area-inset-right)) 22px 22px;border-bottom:1px solid #4b656b;background:#17252b}.topo-cart-dialog button{font-family:inherit}.topo-cart-close{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #58727a;border-radius:7px;background:transparent;color:#fff;font-size:28px;line-height:1}.topo-cart-body{padding:22px;flex:1}.topo-cart-intro,.topo-cart-empty,.topo-cart-advisory,.topo-cart-notice{font-size:14px;line-height:1.6;color:#c8d6d7}.topo-cart-intro{margin-bottom:18px}.topo-cart-empty{padding:22px 0;font-size:16px}.topo-cart-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}.topo-cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px;border:1px solid #4b656b;border-radius:9px;background:#203940}.topo-cart-item h3,.topo-cart-item p{overflow-wrap:anywhere}.topo-cart-kind{font-size:12px;font-weight:700;letter-spacing:.05em;color:#c8d6d7;margin:0 0 5px}.topo-cart-price{font-size:16px;font-weight:700;white-space:nowrap}.topo-cart-state{font-size:14px;line-height:1.5;color:#edce85;margin-top:8px}.topo-cart-state.is-ready{color:#d3f45b}.topo-cart-remove{align-self:start;border:0;padding:8px 0;min-height:44px;background:transparent;color:#edf1ef;font-size:14px;text-decoration:underline;text-underline-offset:4px}.topo-cart-item-side{text-align:right}.topo-cart-foot{padding:22px;padding-bottom:max(22px,env(safe-area-inset-bottom));border-top:1px solid #4b656b;background:#203940}.topo-cart-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:18px;font-weight:700;margin-bottom:12px}.topo-cart-advisory{margin:10px 0 16px}.topo-cart-checkout,.topo-cart-secondary{display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;padding:12px 16px;border:1px solid #d3f45b;border-radius:6px;background:#d3f45b;color:#17252b;font-size:16px;font-weight:700;line-height:1.4}.topo-cart-checkout:disabled{background:#39525a;border-color:#58727a;color:#c8d6d7;cursor:not-allowed}.topo-cart-secondary{background:transparent;border-color:#58727a;color:#fff;margin-top:10px}.topo-cart-clear{display:block;margin:12px auto 0;min-height:44px;padding:8px 12px;border:0;background:transparent;color:#c8d6d7;text-decoration:underline;font-size:14px}.topo-cart-notice{margin:14px 0 0}.topo-cart-conflict{padding:16px;margin-bottom:18px;border:1px solid #edce85;border-radius:8px;background:#2b3939}.topo-cart-conflict p{font-size:14px;line-height:1.6;margin:10px 0 14px}.topo-cart-receipt{margin-top:20px;padding-top:20px;border-top:1px solid #4b656b}.topo-cart-receipt p{font-size:14px;margin:10px 0}.topo-cart-receipt ul{padding:0;list-style:none}.topo-cart-receipt li{margin:12px 0}.topo-cart-live{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.topo-cart-dialog [hidden]{display:none!important}.topo-cart-dialog button:focus-visible,.topo-cart-toggle:focus-visible,.topo-cart-add:focus-visible{outline:3px solid #d3f45b;outline-offset:3px}
@media(max-width:1100px){.header:has(.topo-cart-toggle){gap:16px}.header:has(.topo-cart-toggle) nav{gap:18px}}
@media(max-width:760px){.header:has(.topo-cart-toggle){flex-wrap:wrap;gap:12px}.header .topo-cart-toggle{margin-left:auto}.header:has(.topo-cart-toggle) .menu-toggle{order:3}.header:has(.topo-cart-toggle) nav{order:4;flex-basis:100%}.header:has(.topo-cart-toggle) .nav-contact{display:none}.topo-cart-item{padding:14px;gap:8px}.topo-cart-body,.topo-cart-foot{padding:18px}.topo-cart-price{font-size:14px}body:has(.page-inicio) .header:has(.topo-cart-toggle){flex-wrap:wrap}body:has(.page-inicio) .header .topo-cart-toggle{margin-left:auto}}
@media(max-width:380px){.topo-cart-item{grid-template-columns:1fr}.topo-cart-item-side{display:flex;align-items:center;justify-content:space-between;text-align:left}.header:has(.topo-cart-toggle){gap:8px}.header:has(.topo-cart-toggle) .brand{font-size:12px}body:has(.page-inicio) .header .drone-logo{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.topo-cart-dialog,.topo-cart-add{scroll-behavior:auto;transition:none}}

/* Explicit commercial controls only: courses, resources, manuals, Premium,
   future software purchases and cart actions. Preserve each section's theme.
   Color overrides intentionally beat legacy per-section button selectors. */
:root{
  --payment-cta-bg:#d3f45b;
  --payment-cta-hover-bg:#e2fb87;
  --payment-cta-active-bg:#c6e94d;
  --payment-cta-text:#17252b;
  --payment-cta-disabled-bg:#e0e7d2;
  --payment-cta-disabled-text:#536044;
  --payment-cta-disabled-border:#aebc95;
  --product-price-bg:#a6def0;
}
:is(.payment-cta,.topo-cart-checkout,.topo-cart-add){
  background:var(--payment-cta-bg)!important;
  border-color:var(--payment-cta-bg)!important;
  color:var(--payment-cta-text)!important;
}
@media(hover:hover){
  :is(.payment-cta,.topo-cart-checkout,.topo-cart-add):not(:disabled):not([aria-disabled="true"]):not(.payment-cta--pending):hover{
    background:var(--payment-cta-hover-bg)!important;
    border-color:var(--payment-cta-hover-bg)!important;
  }
}
:is(.payment-cta,.topo-cart-checkout,.topo-cart-add):not(:disabled):not([aria-disabled="true"]):not(.payment-cta--pending):active{
  background:var(--payment-cta-active-bg)!important;
  border-color:var(--payment-cta-active-bg)!important;
}
:is(.payment-cta,.topo-cart-checkout,.topo-cart-add)[aria-pressed="true"]{
  box-shadow:inset 0 0 0 3px var(--payment-cta-text);
}
:is(.payment-cta,.topo-cart-checkout,.topo-cart-add):not(:disabled):not([aria-disabled="true"]):focus-visible{
  outline:3px solid var(--payment-cta-text)!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 6px #fff!important;
}
:is(.payment-cta,.topo-cart-checkout,.topo-cart-add):disabled,:is(.payment-cta,.topo-cart-checkout,.topo-cart-add)[aria-disabled="true"],.payment-cta--pending{
  background:var(--payment-cta-disabled-bg)!important;
  border-color:var(--payment-cta-disabled-border)!important;
  color:var(--payment-cta-disabled-text)!important;
  opacity:1!important;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}
/* Only the price background changes; label, amount and text colors stay intact. */
.product-price-badge{background:var(--product-price-bg)!important}
.manual-price.product-price-badge{width:fit-content;max-width:100%;padding:5px 9px;border-radius:5px}

/* CivilCAD delivery consent, collected only before its direct-course pilot checkout. */
.civilcad-delivery-dialog form>label{display:block;font-size:16px;line-height:1.5;margin:14px 0 8px}
.civilcad-delivery-dialog input[type="email"]{box-sizing:border-box;width:100%;min-height:48px;padding:12px;border:1px solid #79949a;border-radius:5px;background:#fff;color:#17252b;font:inherit;font-size:16px}
.civilcad-delivery-dialog form>label.civilcad-delivery-consent{display:flex;align-items:flex-start;gap:10px;margin:20px 0}
.civilcad-delivery-dialog input[type="checkbox"]{flex:none;width:22px;height:22px;margin-top:2px;accent-color:#d3f45b}
.civilcad-delivery-dialog input:focus-visible{outline:3px solid #d3f45b;outline-offset:3px}

/* Purchase access stays distinct from starting another payment. */
.topo-purchases-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;margin:0 0 20px;border:1px solid #58727a;border-radius:6px;background:#203940;color:#fff;font:inherit;font-size:16px;cursor:pointer}
.topo-purchases-button:focus-visible{outline:3px solid #d3f45b;outline-offset:3px}
.topo-cart-actions [hidden]{display:none!important}.topo-cart-actions.has-purchased-access{grid-template-columns:1fr}
.topo-cart-saved-order{padding:18px 0;border-bottom:1px solid #4b656b}.topo-cart-saved-order.is-paid{padding:18px;margin:16px 0;background:#203940;border:1px solid #79949a;border-radius:8px}
.topo-cart-saved-order h4{font-size:18px;line-height:1.4;margin:10px 0}.topo-cart-paid-total{font-weight:700;color:#d3f45b}.topo-cart-receipt-details{margin:18px 0;font-size:14px;overflow-wrap:anywhere}.topo-cart-receipt-details summary{cursor:pointer;min-height:40px;display:flex;align-items:center}.topo-cart-delivery-help{color:#c8d6d7}

.product-delivery-scope{font-size:14px;line-height:1.5;margin:14px 0;color:#334a50}

.course-return-notice{margin:20px auto;padding:20px;max-width:1000px;border:1px solid #79949a;border-radius:8px;background:#203940;color:#fff}.course-return-notice p{font-size:16px;line-height:1.5;margin-bottom:14px}

/* Approved purchase-delivery layout: payment, file, download, then receipt details. */
.topo-cart-dialog[data-view="purchases"] .topo-cart-receipt{margin-top:0;padding-top:0;border-top:0}
.topo-cart-dialog[data-view="purchases"] .topo-cart-foot{background:#17252b;border-top:0}
.topo-cart-dialog .topo-cart-payment-badge{display:inline-block;width:fit-content;margin:0 0 2px;padding:7px 12px;border-radius:5px;background:#d3f45b;color:#17252b;font-size:14px;line-height:1.4;font-weight:800}
.topo-cart-saved-order.is-paid{padding:20px;margin:20px 0;border-color:#79949a}
.topo-cart-saved-order .topo-cart-product-name{font-size:23px;line-height:1.3;overflow-wrap:anywhere;margin:12px 0 8px}
.topo-cart-saved-order .topo-cart-file-kind{font-size:14px;line-height:1.5;color:#c8d6d7;margin:0 0 6px}
.topo-cart-saved-order .topo-cart-paid-total{font-size:18px;font-weight:800;line-height:1.5;margin:6px 0 22px;color:#d3f45b}
.topo-cart-saved-order.is-paid .topo-cart-delivery-state{font-size:18px;font-weight:700;line-height:1.5;margin:20px 0 4px}
.topo-cart-saved-order .topo-cart-no-rebuy{color:#c8d6d7;font-size:14px;line-height:1.6;margin:4px 0 18px}
.topo-cart-saved-order [data-paid-download]{min-height:62px;font-size:19px;line-height:1.4;margin:20px 0;padding:16px 12px}
.topo-cart-saved-order .topo-cart-save-help{font-size:13px;line-height:1.6;color:#c8d6d7;margin:16px 0 22px}
.topo-cart-saved-order .topo-cart-receipt-details{border-top:1px solid #58727a;padding-top:8px;margin:20px 0 0}
.topo-cart-receipt-details summary{justify-content:space-between;gap:12px;font-weight:700;list-style:none}
.topo-cart-receipt-details summary::-webkit-details-marker{display:none}
.topo-cart-receipt-details summary::after{content:'+';font-size:20px;font-weight:400}
.topo-cart-receipt-details[open] summary::after{content:'−'}
.topo-cart-receipt>.topo-cart-delivery-help{font-size:14px;line-height:1.7;margin:24px 0 8px}
@media(max-width:380px){.topo-cart-dialog[data-view="purchases"] .topo-cart-head{padding:18px;gap:10px}.topo-cart-dialog[data-view="purchases"] h2{font-size:22px}.topo-cart-saved-order.is-paid{padding:16px}.topo-cart-saved-order .topo-cart-product-name{font-size:21px}}
