/* Source-grounded storefront rules, captured from the requested reference page. */
:root{--storefront-unit:min(1vw,5px);}
:where(.storefront-modal,.storefront-modal *){box-sizing:border-box;margin:0;padding:0;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;}
.pay-options-modal { display: none; position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 10; align-items: center; justify-content: center; padding: calc(var(--storefront-unit) * 3); }
.modal-content { width: 100%; max-width: 380px; background: white; border-radius: 12px; overflow: hidden; box-shadow: rgba(0, 0, 0, 0.1) 0px 5px 15px; animation: 0.3s ease 0s 1 normal none running modalFadeIn; }
@keyframes modalFadeIn { 
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0px); }
}
.modal-header { padding: calc(var(--storefront-unit) * 4); text-align: center; font-size: calc(var(--storefront-unit) * 4.5); font-weight: 500; color: rgb(51, 51, 51); border-bottom: 1px solid rgb(240, 240, 240); }
.modal-subtitle { padding: calc(var(--storefront-unit) * 2.5) calc(var(--storefront-unit) * 4); text-align: center; font-size: calc(var(--storefront-unit) * 3.2); color: rgb(102, 102, 102); line-height: 1.4; }
.modal-body { padding: 0px calc(var(--storefront-unit) * 4) calc(var(--storefront-unit) * 3); }
.pay-option { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--storefront-unit) * 3); margin-bottom: calc(var(--storefront-unit) * 2.5); background: rgb(249, 249, 249); border-radius: 8px; cursor: pointer; transition: 0.2s; border: 1px solid rgb(234, 234, 234); position: relative; }
.pay-option:hover { background: rgb(240, 240, 240); }
.pay-option.selected { background: rgb(232, 245, 233); border: 1px solid rgb(7, 193, 96); position: relative; }
.pay-option.selected::after { content: "✓"; position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; background: rgb(7, 193, 96); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.limited-offer { position: absolute; top: -6px; right: -6px; background: linear-gradient(135deg, rgb(255, 122, 0), rgb(255, 82, 0)); color: white; font-size: calc(var(--storefront-unit) * 2.2); font-weight: 500; padding: calc(var(--storefront-unit) * 0.8) calc(var(--storefront-unit) * 1.5); border-radius: 4px; box-shadow: rgba(255, 122, 0, 0.3) 0px 2px 6px; z-index: 1; white-space: nowrap; }
.pay-option .left { flex: 1 1 0%; }
.pay-option .title { font-weight: 500; font-size: calc(var(--storefront-unit) * 4); color: rgb(51, 51, 51); display: flex; align-items: center; }
.pay-option .recommend { background: rgb(255, 77, 79); color: white; font-size: calc(var(--storefront-unit) * 2.8); padding: 0.5px 3px; border-radius: 3px; margin-left: calc(var(--storefront-unit) * 2); white-space: nowrap; }
.pay-option .desc { font-size: calc(var(--storefront-unit) * 2.8); color: rgb(102, 102, 102); margin-top: calc(var(--storefront-unit) * 0.8); line-height: 1.3; }
.pay-option .perks { display: flex; flex-wrap: wrap; gap: calc(var(--storefront-unit) * 0.8); margin-top: calc(var(--storefront-unit) * 1.2); width: 100%; }
.pay-option .perk-tag { background: rgb(240, 249, 242); color: rgb(7, 193, 96); font-size: calc(var(--storefront-unit) * 2.5); padding: calc(var(--storefront-unit) * 0.5) calc(var(--storefront-unit) * 1); border-radius: 20px; display: flex; align-items: center; gap: calc(var(--storefront-unit) * 0.5); flex: 0 0 calc(50% - calc(var(--storefront-unit) * 0.4)); text-align: center; justify-content: center; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-option .price { font-weight: 500; color: rgb(7, 193, 96); font-size: calc(var(--storefront-unit) * 4.5); text-align: right; z-index: 2; position: relative; }
.pay-option .discount { font-size: calc(var(--storefront-unit) * 2.8); color: rgb(153, 153, 153); text-decoration: line-through; margin-right: calc(var(--storefront-unit) * 1.5); }
.pay-option .save { color: rgb(255, 77, 79); font-size: calc(var(--storefront-unit) * 2.8); margin-top: calc(var(--storefront-unit) * 1.2); font-weight: 500; }
.modal-footer { padding: 0px calc(var(--storefront-unit) * 4) calc(var(--storefront-unit) * 4); display: flex; justify-content: center; }
.pay-btn { padding: calc(var(--storefront-unit) * 2.8) calc(var(--storefront-unit) * 6); background: linear-gradient(135deg, rgb(7, 193, 96), rgb(5, 168, 84)); color: white; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 25px; font-size: calc(var(--storefront-unit) * 3.8); font-weight: 500; cursor: pointer; width: 100%; transition: 0.2s; margin-bottom: calc(var(--storefront-unit) * 2.5); }
.pay-btn:active { transform: scale(0.98); opacity: 0.9; }
.agreement-container { display: flex; align-items: center; justify-content: center; margin-top: calc(var(--storefront-unit) * 3); font-size: calc(var(--storefront-unit) * 2.8); color: rgb(102, 102, 102); text-align: center; flex-wrap: wrap; line-height: 1.4; }
.agreement-checkbox { margin-right: calc(var(--storefront-unit) * 1.5); width: calc(var(--storefront-unit) * 3.5); height: calc(var(--storefront-unit) * 3.5); max-width: 14px; max-height: 14px; appearance: none; border: 1px solid rgb(221, 221, 221); border-radius: 3px; outline: none; position: relative; }
.agreement-checkbox:checked { background-color: rgb(7, 193, 96); border-color: rgb(7, 193, 96); }
.agreement-checkbox:checked::after { content: "✓"; position: absolute; color: white; font-size: 11px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.agreement-link { color: rgb(87, 107, 149); text-decoration: none; margin-left: calc(var(--storefront-unit) * 0.8); display: inline-block; margin-top: calc(var(--storefront-unit) * 0.5); }
.error-message { color: rgb(255, 77, 79); font-size: calc(var(--storefront-unit) * 3.2); margin: calc(var(--storefront-unit) * 2.5) 0px calc(var(--storefront-unit) * 3); text-align: center; display: none; animation: 0.5s ease 0s 1 normal none running shake; }
@keyframes shake { 
  0%, 100% { transform: translateX(0px); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.loading { display: inline-block; width: calc(var(--storefront-unit) * 3.5); height: calc(var(--storefront-unit) * 3.5); max-width: 14px; max-height: 14px; border-width: 2px; border-style: solid; border-color: white rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3); border-image: none; border-radius: 50%; animation: 1s ease-in-out 0s infinite normal none running spin; margin-right: calc(var(--storefront-unit) * 1.5); vertical-align: middle; }
@keyframes spin { 
  100% { transform: rotate(360deg); }
}
.footer { text-align: center; padding: calc(var(--storefront-unit) * 3); font-size: calc(var(--storefront-unit) * 2.8); color: rgb(153, 153, 153); background: rgb(247, 247, 247); }
.progress-subtext { font-size: calc(var(--storefront-unit) * 3.5); color: rgb(102, 102, 102); margin-top: calc(var(--storefront-unit) * 1.5); }
.agreement-modal { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 20; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; padding: calc(var(--storefront-unit) * 3); }
.agreement-modal.active { opacity: 1; visibility: visible; }
.agreement-content { background-color: white; border-radius: 16px; width: 100%; max-width: 450px; max-height: 75vh; overflow: hidden; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s; }
.agreement-modal.active .agreement-content { transform: scale(1); }
.agreement-header { padding: 18px 20px; border-bottom: 1px solid rgb(232, 232, 232); display: flex; justify-content: space-between; align-items: center; }
.agreement-title { font-size: 16px; font-weight: 600; color: rgb(51, 51, 51); }
.agreement-close { font-size: 22px; color: rgb(153, 153, 153); cursor: pointer; transition: color 0.2s; }
.agreement-close:hover { color: rgb(51, 51, 51); }
.agreement-body { padding: 20px; overflow-y: auto; flex: 1 1 0%; line-height: 1.5; color: rgb(102, 102, 102); font-size: 13px; }
.agreement-body h3 { font-size: 15px; color: rgb(51, 51, 51); margin-top: 18px; margin-bottom: 8px; }
.agreement-body p { margin-bottom: 14px; }
.agreement-footer { padding: 12px 20px; border-top: 1px solid rgb(232, 232, 232); display: flex; align-items: center; justify-content: space-between; }
.agreement-footer-text { font-size: 12px; color: rgb(102, 102, 102); }
.agree-button { min-width: 100px; padding: 8px 16px; background-color: rgb(7, 193, 96); color: white; font-size: 14px; font-weight: 500; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.agree-button:disabled { background-color: rgb(204, 204, 204) !important; cursor: not-allowed !important; opacity: 0.7 !important; }
.agree-button:hover:not(:disabled) { background-color: rgb(5, 160, 80) !important; }
@media screen and (max-width: 319px) {
  .progress-container { padding: calc(var(--storefront-unit) * 30) calc(var(--storefront-unit) * 3) calc(var(--storefront-unit) * 20); }
  .progress-icon { width: calc(var(--storefront-unit) * 25); height: calc(var(--storefront-unit) * 25); }
  .pay-option .perk-tag { font-size: calc(var(--storefront-unit) * 2.3); padding: calc(var(--storefront-unit) * 0.4) calc(var(--storefront-unit) * 0.8); }
  .agreement-container { font-size: calc(var(--storefront-unit) * 2.6); }
}
@media screen and (min-width: 320px) and (max-width: 374px) {
  body { font-size: 14px; }
  .modal-subtitle { font-size: calc(var(--storefront-unit) * 3); }
  .pay-option .perk-tag { font-size: calc(var(--storefront-unit) * 2.4); padding: calc(var(--storefront-unit) * 0.4) calc(var(--storefront-unit) * 0.9); }
  .pay-btn { font-size: calc(var(--storefront-unit) * 3.6); }
}
@media screen and (min-width: 375px) and (max-width: 413px) {
  body { font-size: 15px; }
  .header { font-size: calc(var(--storefront-unit) * 3); }
  .progress-text { font-size: calc(var(--storefront-unit) * 4.2); }
  .modal-subtitle { font-size: calc(var(--storefront-unit) * 2.8); }
  .pay-option .perk-tag { font-size: calc(var(--storefront-unit) * 2.5); padding: calc(var(--storefront-unit) * 0.5) calc(var(--storefront-unit) * 1); }
}
@media screen and (min-width: 414px) and (max-width: 539px) {
  body { font-size: 16px; }
  .progress-icon { width: calc(var(--storefront-unit) * 30); height: calc(var(--storefront-unit) * 30); max-width: 90px; max-height: 90px; }
  .progress-icon::after { font-size: calc(var(--storefront-unit) * 8); }
  .pay-option .perks { gap: 7px; }
  .pay-option .perk-tag { font-size: 11px; flex: 0 0 calc(50% - 3.5px); padding: 3px 8px; gap: 3px; }
  .pay-btn { font-size: calc(var(--storefront-unit) * 3.5); padding: calc(var(--storefront-unit) * 2.5) calc(var(--storefront-unit) * 6); }
  .agreement-container { font-size: calc(var(--storefront-unit) * 2.6); }
}
@media screen and (min-width: 540px) and (max-width: 767px) {
  body { font-size: 16px; }
  .header, .footer, .progress-subtext, .error-message { font-size: 13px; }
  .progress-text { font-size: 18px; }
  .modal-header { font-size: 18px; padding: 18px; }
  .modal-subtitle { font-size: 14px; padding: 12px 18px; }
  .pay-option { padding: 15px; margin-bottom: 12px; }
  .pay-option .title { font-size: 16px; }
  .pay-option .recommend { font-size: 12px; margin-left: 10px; padding: 1px 4px; }
  .pay-option .desc { font-size: 13px; margin-top: 5px; }
  .pay-option .perks { gap: 8px; margin-top: 8px; }
  .pay-option .perk-tag { font-size: 11px; padding: 4px 8px; flex: 0 0 calc(50% - 4px); }
  .pay-option .price { font-size: 18px; }
  .pay-option .discount { font-size: 12px; margin-right: 8px; }
  .pay-option .save { font-size: 12px; margin-top: 8px; }
  .limited-offer { font-size: 12px; padding: 4px 8px; top: -6px; right: -6px; }
  .pay-btn { font-size: 16px; padding: 12px 0px; margin-bottom: 12px; }
  .agreement-container { font-size: 12px; margin-top: 15px; }
  .agreement-checkbox { width: 14px; height: 14px; max-width: 14px; max-height: 14px; margin-right: 8px; }
  .error-message { font-size: 14px; margin: 12px 0px 15px; }
  .loading { width: 14px; height: 14px; max-width: 14px; max-height: 14px; margin-right: 8px; }
}
@media screen and (min-width: 768px) {
  body { font-size: 16px; max-width: 500px; margin: 0px auto; box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 15px; }
  .header { font-size: 14px; padding: 12px 15px; }
  .progress-container { padding: 150px 20px 100px; }
  .progress-icon { width: 100px; height: 100px; max-width: 100px; max-height: 100px; }
  .progress-icon::after { font-size: 50px; }
  .progress-text { font-size: 20px; margin-bottom: 20px; }
  .progress-bar { width: 80%; margin-bottom: 20px; }
  .progress-subtext { font-size: 16px; margin-top: 10px; }
  .footer { font-size: 13px; padding: 15px; }
  .modal-content { max-width: 400px; margin: 0px auto; }
  .pay-option .perk-tag { font-size: 12px; padding: 5px 10px; }
  .purchase-notice { font-size: 14px !important; margin: 15px 0px !important; }
}
.purchase-notice { text-align: center; font-size: calc(var(--storefront-unit) * 3); color: rgb(255, 77, 79); margin: calc(var(--storefront-unit) * 2) 0px; font-weight: 500; padding: calc(var(--storefront-unit) * 1.5); background-color: rgb(255, 248, 248); border-radius: 8px; border: 1px solid rgb(255, 229, 229); }
/* Native semantics, keyboard focus and bounded desktop layout. */
.storefront-modal{max-width:none;max-height:none;margin:0;border:0;color:#333;line-height:normal;}
.storefront-modal::backdrop{background:transparent;}
.storefront-modal:not([open]){display:none!important;}
.storefront-modal[open]{display:flex;}
.pay-options-modal .modal-content{display:flex;flex-direction:column;max-height:calc(100dvh - 6 * var(--storefront-unit));}
.modal-header,.modal-subtitle,.modal-footer{flex-shrink:0;}
.modal-body{overflow-y:auto;min-height:0;}
button.pay-option{width:100%;text-align:left;font:inherit;}
.pay-option .left{min-width:0;}
.pay-option .price{flex-shrink:0;}
.recommend.trial{background:#2f88ff;color:#fff;padding:1px 6px;border-radius:3px;font-size:11px;font-weight:700;margin-left:6px;}
.recommend.permanent{background:#ff4d4f;color:#fff;padding:1px 6px;border-radius:3px;font-size:11px;font-weight:700;margin-left:6px;}
.purchase-actions{display:flex;width:100%;gap:calc(3 * var(--storefront-unit));}
.purchase-actions .primary-action{flex:2;}
.purchase-actions .secondary-action{flex:1;background:linear-gradient(135deg,#ff7d00,#ff5000);padding:calc(2.8 * var(--storefront-unit)) calc(3 * var(--storefront-unit));display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;}
button.pay-btn{display:flex;align-items:center;justify-content:center;}
.pay-btn:disabled{cursor:wait;opacity:.7;}
.error-message:not([hidden]){display:block;}
[hidden]{display:none!important;}
.agreement-close{border:0;background:none;line-height:1;width:28px;height:28px;display:flex;align-items:center;justify-content:center;}
.agreement-modal[open]{opacity:1;visibility:visible;}
.agreement-modal[open] .agreement-content{transform:none;}
.agreement-body{white-space:pre-wrap;overflow-wrap:anywhere;}
.agreement-footer{gap:14px;flex-shrink:0;}
.agreement-footer-text{flex:1;}
.agree-button{flex-shrink:0;}
.storefront-modal :focus-visible{outline:3px solid #08736d;outline-offset:3px;}
.storefront-modal *{scrollbar-width:thin;scrollbar-color:#a7a7a7 #f4f4f4;}
.storefront-modal *::-webkit-scrollbar{width:8px;height:8px;}
.storefront-modal *::-webkit-scrollbar-track{background:#f4f4f4;}
.storefront-modal *::-webkit-scrollbar-thumb{background:#a7a7a7;border-radius:5px;}
.storefront-modal *::-webkit-scrollbar-thumb:hover{background:#777;}
.order-modal .modal-content{max-width:400px;}
.order-content{padding:20px;font-size:14px;line-height:1.6;overflow-wrap:anywhere;}
.order-content h3{font-size:20px;color:#333;margin:0 0 10px;}
.order-content dl{margin:14px 0;}
.order-content dl div{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid #f0f0f0;}
.order-content dd{margin:0;text-align:right;}
.order-content .order-status{color:#07c160;}
.order-content .order-error{color:#d74143;}
.order-actions{display:flex;flex-direction:column;gap:10px;margin-top:16px;}
.order-actions .pay-btn{font-size:16px;padding:12px;margin:0;text-align:center;text-decoration:none;}
.order-secondary{border:1px solid #ddd;background:white;border-radius:24px;padding:10px;color:#555;font-size:14px;cursor:pointer;}
.order-help{margin-top:14px;color:#777;font-size:12px;}
.front-stage-ready .loading-progress-fill{animation:none!important;width:100%;}
.front-stage-ready .entry-topbar{flex-basis:auto;padding:calc(2 * var(--storefront-unit)) calc(3 * var(--storefront-unit));border:0;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:calc(3 * var(--storefront-unit));line-height:normal;}
.front-stage-ready .entry-footer{flex-basis:auto;padding:calc(3 * var(--storefront-unit));font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:calc(2.8 * var(--storefront-unit));line-height:normal;}
.front-stage-ready .entry-page{padding-top:0;}
@media(min-width:768px){.front-stage-ready .entry-page{max-width:500px;margin:0 auto;box-shadow:0 0 15px #0000000d;}.front-stage-ready .entry-topbar{font-size:14px;padding:12px 15px;}.front-stage-ready .entry-footer{font-size:13px;padding:15px;}}
@media(max-width:374px){.purchase-actions .pay-btn{font-size:calc(3.6 * var(--storefront-unit));}.agreement-footer{padding:12px 14px;gap:8px;}.agree-button{min-width:90px;padding:8px 12px;}}
@media(prefers-reduced-motion:reduce){.storefront-modal *{animation:none!important;transition:none!important;}.storefront-modal .pay-btn:active{transform:none;}}
@media(forced-colors:active){.storefront-modal *{scrollbar-color:auto;}.pay-option.selected{outline:2px solid Highlight;}.pay-btn,.order-secondary{border:1px solid ButtonText;}}

.pay-option .desc,.pay-option .save{display:block;}
.pay-btn{overflow-wrap:anywhere;}
.storefront-modal :focus-visible{outline:none;}
.storefront-modal :is(button,a,input,[role="radio"]):focus-visible{outline:3px solid #08736d;outline-offset:3px;}

.order-content{min-height:0;overflow-y:auto;}
@media(min-width:768px){.storefront-modal{--storefront-unit:3.9px;}}
