/* Seasonal decoration for My Subscription. All art is inert and out of flow. */
#appShell:has(> .workspace > #commercialBilling.active) > .workspace {
  background-image: linear-gradient(139deg, #f7f6ee, #e9f0ee 52%, #f4f6f2 88%);
}

#commercialBilling .w03-billing-hero {
  isolation: isolate;
  border-color: #466a6d;
  border-radius: 14px;
  background: radial-gradient(ellipse at 90% 82%, #32646c, transparent 59%),
    linear-gradient(120deg, #102f38, #153d46 63%, #23545d);
  box-shadow: 0 10px 25px #143d4320;
}

#commercialBilling .w03-billing-hero::after { content: none; }
#commercialBilling .w03-billing-hero h3 { color: #fffdf6; }

#commercialBilling .w03-winter-banner {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
#commercialBilling .w03-winter-banner::before {
  position: absolute;
  content: "";
  inset: 0;
  background: url("assets/w03-winter-grove.svg") right bottom / auto 88px no-repeat;
  opacity: .62;
}

#commercialBilling .w03-winter-cap {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  width: 100%;
  height: 33px;
}

#commercialBilling .w03-winter-flake {
  position: absolute;
  top: 9px;
  width: 21px;
  height: 51px;
  color: #dcc79d;
  opacity: .84;
  transform-origin: 50% 0;
  animation: w03-winter-sway 7.5s ease-in-out infinite alternate;
}

#commercialBilling .w03-winter-flake-left { left: 10px; }
#commercialBilling .w03-winter-flake-right {
  right: 11px;
  width: 24px;
  height: 58px;
  animation-duration: 10s;
  animation-delay: -6s;
}

#commercialBilling .w03-winter-snow i {
  position: absolute;
  left: var(--x);
  top: var(--rest);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e4f3f5;
  opacity: var(--alpha);
  animation: w03-winter-fall var(--pace) var(--delay) linear infinite;
}

#commercialBilling .w03-winter-snow i:nth-child(1) { --x: 8%; --rest: 44%; --size: 4px; --alpha: .52; --pace: 13s; --delay: -11s; --drift: 22px; }
#commercialBilling .w03-winter-snow i:nth-child(2) { --x: 21%; --rest: 76%; --size: 3px; --alpha: .68; --pace: 15s; --delay: -14s; --drift: -13px; }
#commercialBilling .w03-winter-snow i:nth-child(3) { --x: 37%; --rest: 33%; --size: 5px; --alpha: .50; --pace: 10s; --delay: -7s; --drift: 26px; }
#commercialBilling .w03-winter-snow i:nth-child(4) { --x: 54%; --rest: 60%; --size: 3px; --alpha: .53; --pace: 16s; --delay: -16s; --drift: -20px; }
#commercialBilling .w03-winter-snow i:nth-child(5) { --x: 70%; --rest: 29%; --size: 4px; --alpha: .59; --pace: 12s; --delay: -9s; --drift: 16px; }
#commercialBilling .w03-winter-snow i:nth-child(6) { --x: 87%; --rest: 67%; --size: 4px; --alpha: .43; --pace: 14s; --delay: -4s; --drift: -21px; }

#commercialBilling .w03-winter-star {
  position: absolute;
  width: 7px;
  aspect-ratio: 1;
  background: #e3c997;
  clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  opacity: .45;
  animation: w03-winter-twinkle 19s -9s ease-in-out infinite;
}
#commercialBilling .w03-winter-star-one { left: 30%; bottom: 17px; }
#commercialBilling .w03-winter-star-two { right: 12%; top: 35px; animation-duration: 23s; animation-delay: -3s; }

#commercialBilling .w03-current-card {
  position: relative;
  isolation: isolate;
  background-image: radial-gradient(ellipse at 98% 104%, #153f48 0%, #37636b 22%,
    #789ba0af 38%, #b9ced06b 52%, #d6e5e21f 68%, transparent 78%);
  background-position: right bottom;
  background-size: min(32%, 280px) 148px;
  background-repeat: no-repeat;
}

#commercialBilling .w03-winter-lantern {
  position: absolute;
  z-index: -1;
  bottom: 0;
  right: 0;
  width: 112px;
  height: 74px;
  pointer-events: none;
  background: url("assets/w03-winter-lantern.svg") right bottom / contain no-repeat;
}
#commercialBilling .w03-winter-lantern::after {
  position: absolute;
  content: "";
  inset: 3px -3px 0 18px;
  background: radial-gradient(ellipse at 65% 63%, #ffc86ed1, #ffd58c85 22%, #ffe7b134 45%, transparent 67%);
  transform-origin: 65% 63%;
  animation: w03-winter-glow 5s -1.2s ease-in-out infinite;
}

/* This static grove is shared by the CRM navigation across views. */
#appShell > #primarySidebar { isolation: isolate; }
#appShell > #primarySidebar::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: auto 0 32px;
  height: 116px;
  background: url("assets/w03-winter-grove.svg") right bottom / auto 100% no-repeat;
  opacity: .32;
  pointer-events: none;
}

/* Sidebar snowfall. Remove this block to take down the seasonal effect. */
#appShell > #primarySidebar::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 11% 17%, #e4f3f571 0 1px, transparent 1.8px),
    radial-gradient(circle at 39% 57%, #e4f3f55e 0 1px, transparent 1.7px),
    radial-gradient(circle at 86% 74%, #e4f3f569 0 1.2px, transparent 2px),
    radial-gradient(circle at 72% 26%, #e4f3f566 0 1px, transparent 1.7px),
    radial-gradient(circle at 16% 69%, #e4f3f568 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 91% 92%, #e4f3f56e 0 1px, transparent 1.8px);
  background-size: 100% 320px, 100% 320px, 100% 320px, 100% 480px, 100% 480px, 100% 480px;
  background-repeat: repeat-y;
  animation: w03-winter-sidebar-fall 19s linear infinite;
}
@keyframes w03-winter-sidebar-fall {
  to { background-position-y: 320px, 320px, 320px, 480px, 480px, 480px; }
}
@media (prefers-reduced-motion: reduce) {
  #appShell > #primarySidebar::after { animation: none; }
}

#appShell:has(> .workspace > #commercialBilling.active) #logoutBtn { color: #e0c69a; }

#commercialBilling .w03-billing-hero #w04InviteEntry {
  background: #faf5e8;
  border-color: #c6ad83;
  color: #143d43;
}
#commercialBilling .w03-billing-hero #w04InviteEntry:hover { background: #f1e7cf; }

#commercialBilling .panel,
#commercialBilling .w03-price-card,
#commercialBilling .w03-preview { border-radius: 12px; }
#commercialBilling .panel { border-color: #dce5df; }
#commercialBilling .w03-summary-grid > div { border-color: #e0e8e3; background: #f4f7f4; }

#commercialBilling .w03-choice-form select {
  background: #fcfcf8;
  border-color: #d3dfd8;
  color: #252e30;
}
#commercialBilling .w03-choice-form select:focus-visible {
  outline: 1px solid #9e8253;
  outline-offset: -1px;
  box-shadow: none;
}
#commercialBilling .w03-coupon-option,
#commercialBilling .w03-payment-option {
  border-color: #d5e0da;
  border-radius: 9px;
}
#commercialBilling .w03-coupon-option:has(input:checked),
#commercialBilling .w03-payment-option:has(input:checked) {
  border-color: #719387;
  background: #edf3ef;
  box-shadow: none;
}
#commercialBilling :is(.w03-coupon-option, .w03-payment-option) input { accent-color: #28594f; }
#commercialBilling .w03-preview {
  background: #f1f5f0;
  border-color: #cfddd3;
  color: #335650;
}
#commercialBilling .w03-preview-total,
#commercialBilling .w03-preview-effective { border-color: #d2ded6; }

@media (max-width: 720px) {
  #commercialBilling .w03-winter-banner::before { background-size: auto 59px; }
  #appShell > #primarySidebar::before { height: 86px; opacity: .26; }
  #commercialBilling .w03-winter-cap { height: 22px; }
  #commercialBilling .w03-winter-flake { width: 15px; height: 36px; top: 6px; }
  #commercialBilling .w03-winter-flake-left { left: 3px; }
  #commercialBilling .w03-winter-flake-right { right: 3px; }
  #commercialBilling .w03-current-card { background-size: 130px 84px; }
  #commercialBilling .w03-winter-lantern { width: 82px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  #commercialBilling :is(.w03-winter-flake, .w03-winter-snow i, .w03-winter-star),
  #commercialBilling .w03-winter-lantern::after { animation: none; }
}

@keyframes w03-winter-sway {
  from { transform: rotate(-4.5deg); }
  to { transform: rotate(4.5deg); }
}
@keyframes w03-winter-fall {
  0% { transform: translate(0,-125px); opacity: 0; }
  21%, 76% { opacity: var(--alpha); }
  100% { transform: translate(var(--drift), 98px); opacity: 0; }
}
@keyframes w03-winter-twinkle {
  0%, 67%, 100% { opacity: .27; }
  75% { opacity: .78; }
}
@keyframes w03-winter-glow {
  0%, 100% { opacity: .18; transform: scale(.88); }
  52% { opacity: .9; transform: scale(1.12); }
}
