.astra-notebook-calculator {
    max-width: 1130px;
}
.astra-notebook-layout {
    --notebook-blue: #154b9d;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(235px, 295px);
    align-items: start;
    gap: 20px;
    margin-top: 22px;
}
.astra-notebook-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.astra-notebook-layout fieldset,
.astra-notebook-total {
    background: #fff;
    border: 1px solid #ccd7e6;
    border-radius: 8px;
    min-width: 0;
    padding: 16px;
}
.astra-notebook-layout legend {
    color: var(--notebook-blue);
    font-size: 15px;
    font-weight: 650;
    padding: 0 7px;
}
.astra-notebook-layout label {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
}
.astra-notebook-layout select,
.astra-notebook-layout input {
    box-sizing: border-box;
    font: inherit;
    min-height: 36px;
    width: 100%;
}
.astra-notebook-note {
    color: #50575e;
    margin: 12px 0 0;
}
.astra-notebook-total {
    background: #f1f6ff;
}
.astra-notebook-total h2,
.astra-notebook-total h3 {
    margin-top: 0;
}
.astra-notebook-amount {
    color: var(--notebook-blue);
    font-size: clamp(24px, 2.7vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.astra-notebook-breakdown {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 0;
}
.astra-notebook-breakdown dd {
    margin: 0;
    text-align: right;
}
@media (max-width: 1060px) {
    .astra-notebook-options { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .astra-notebook-layout { grid-template-columns: 1fr; }
}
.astra-notebook-icon-control {
    margin-top: 12px;
}
.astra-notebook-icon-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 5px;
}
.astra-notebook-icon-choices .astra-notebook-choice {
    position: relative;
    margin: 0;
}
.astra-notebook-layout .astra-notebook-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}
.astra-notebook-choice-face {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid #b9c9e0;
    border-radius: 6px;
    color: #17365f;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
}
.astra-notebook-choice :checked + .astra-notebook-choice-face {
    border-color: var(--notebook-blue);
    background: #e7f0ff;
    box-shadow: inset 0 0 0 1px var(--notebook-blue);
}
.astra-notebook-choice :focus-visible + .astra-notebook-choice-face {
    outline: 2px solid var(--notebook-blue);
    outline-offset: 2px;
}
.astra-notebook-choice-icon {
    display: grid;
    flex: 0 0 27px;
    height: 27px;
    place-items: center;
}
.astra-notebook-sheet {
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 16px;
    height: 23px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    background: #fff;
}
.astra-notebook-sheet[data-icon="landscape"],
.astra-notebook-layout:has([name="orientation"][value="landscape"]:checked) .astra-notebook-sheet:is([data-icon="short"], [data-icon="long"]) {
    width: 23px;
    height: 16px;
}
.astra-notebook-sheet:is([data-icon="short"], [data-icon="long"])::after {
    position: absolute;
    content: "";
}
.astra-notebook-sheet[data-icon="short"]::after,
.astra-notebook-layout:has([name="orientation"][value="landscape"]:checked) .astra-notebook-sheet[data-icon="long"]::after {
    inset: -4px 1px auto;
    width: auto;
    height: 5px;
    background: repeating-linear-gradient(90deg, var(--notebook-blue) 0 2px, transparent 2px 4px);
}
.astra-notebook-sheet[data-icon="long"]::after,
.astra-notebook-layout:has([name="orientation"][value="landscape"]:checked) .astra-notebook-sheet[data-icon="short"]::after {
    inset: 1px auto 1px -4px;
    width: 5px;
    height: auto;
    background: repeating-linear-gradient(0deg, var(--notebook-blue) 0 2px, transparent 2px 4px);
}
.astra-notebook-icon-choices:is([data-choice-group="format"], [data-choice-group="sheets"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.astra-notebook-sheet[data-icon="format-a4"] { width: 18px; height: 25px; }
.astra-notebook-sheet[data-icon="format-a5"] { width: 15px; height: 21px; }
.astra-notebook-sheet[data-icon="format-a6"] { width: 12px; height: 17px; }
.astra-notebook-sheet[data-icon^="stack-"] {
    height: 17px;
    box-shadow: 2px 2px 0 #fff, 3px 3px 0 currentColor;
}
.astra-notebook-sheet[data-icon="stack-40"] {
    box-shadow: 2px 2px 0 #fff, 3px 3px 0 currentColor, 5px 5px 0 #fff, 6px 6px 0 currentColor;
}
.astra-notebook-sheet[data-icon="stack-50"] {
    box-shadow: 2px 2px 0 #fff, 3px 3px 0 currentColor, 5px 5px 0 #fff, 6px 6px 0 currentColor, 8px 8px 0 #fff, 9px 9px 0 currentColor;
}
.astra-notebook-sheet[data-icon$="-double"] {
    box-shadow: 2px 2px 0 #fff, 3px 3px 0 currentColor;
}
.astra-notebook-sheet:is([data-icon^="mono"], [data-icon^="color"])::after {
    position: absolute;
    content: "";
    inset: 4px 2px 5px;
    background: repeating-linear-gradient(0deg, #535c65 0 2px, transparent 2px 4px);
}
.astra-notebook-sheet[data-icon^="color"]::after {
    background: linear-gradient(90deg, #007db7 33%, #e04a70 33% 67%, #efbb27 67%);
}
.astra-notebook-sheet[data-icon="gloss"] {
    background: linear-gradient(135deg, #a8d6fa 35%, #fff 36% 57%, #a8d6fa 58%);
}
.astra-notebook-sheet[data-icon="matte"] {
    background: radial-gradient(circle, #7391ad 0.6px, transparent 0.8px) 0 0 / 3px 3px #e8eff6;
}

.astra-notebook-popular {
    --notebook-table-blue: #365ac0;
    box-sizing: border-box;
    margin: 24px 0 32px;
    padding: 26px;
    border: 1px solid #dce5f3;
    border-radius: 20px;
    background: #fff;
    color: #182336;
    font: 400 14px/1.6 Montserrat, Arial, sans-serif;
    box-shadow: 0 8px 28px rgba(35, 61, 112, .045);
}
.astra-notebook-popular h2 {
    margin: 0 0 18px;
    color: inherit;
    font: 700 22px/1.35 Montserrat, Arial, sans-serif;
}
.astra-notebook-popular-grid {
    max-width: 100%;
    overflow: auto;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    scrollbar-color: #afbfdd #f1f5fb;
    scrollbar-width: thin;
}
.astra-notebook-popular-grid table {
    min-width: 660px;
    width: 100%;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font: inherit;
}
.astra-notebook-popular-grid th, .astra-notebook-popular-grid td {
    border: 0 !important;
    border-right: 1px solid #e3e9f2 !important;
    border-bottom: 1px solid #e3e9f2 !important;
    padding: 12px 7px;
    text-align: center;
    vertical-align: middle;
}
.astra-notebook-popular-grid tr > :last-child { border-right: 0 !important; }
.astra-notebook-popular-grid tbody tr:last-child > * { border-bottom: 0 !important; }
.astra-notebook-popular-grid thead th {
    background: var(--notebook-table-blue) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}
.astra-notebook-popular-grid tbody th { color: #24344e; font-weight: 600; }
.astra-notebook-popular-grid tbody tr > * { background: #fff !important; }
.astra-notebook-popular-grid tbody tr:nth-child(even) > * { background: #f3f6fc !important; }
.astra-notebook-popular-grid tr > th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 135px;
    padding: 12px 14px;
    text-align: left;
}
.astra-notebook-popular-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 65px;
    padding: 10px 4px;
    border: 1px solid #d7e2f6;
    border-radius: 9px;
    background: #fff;
    color: #2f51a8;
    font: inherit;
    cursor: pointer;
}
.astra-notebook-popular-price strong { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.astra-notebook-popular-unit {
    color: #52637b;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.astra-notebook-popular-price:disabled { opacity: .65; cursor: default; }
.astra-notebook-popular-price:not(:disabled):hover,
.astra-notebook-popular-price[aria-pressed="true"] {
    border-color: var(--notebook-table-blue);
    background: var(--notebook-table-blue);
    color: #fff;
    box-shadow: 0 3px 8px #365ac020;
}
.astra-notebook-popular-price:not(:disabled):hover .astra-notebook-popular-unit,
.astra-notebook-popular-price[aria-pressed="true"] .astra-notebook-popular-unit { color: #fff; }
.astra-notebook-popular-price:focus-visible, .astra-notebook-popular-grid:focus-visible {
    outline: 3px solid #f3ce54;
    outline-offset: 2px;
}
.astra-notebook-popular-note { margin: 16px 0 0; color: #64718a; font-size: 12px; }
@media (max-width: 760px) {
    .astra-notebook-popular { padding: 18px 14px; border-radius: 16px; }
    .astra-notebook-popular h2 { font-size: 20px; }
    .astra-notebook-popular-grid tr > th:first-child { width: 104px; padding: 10px; }
}
.astra-notebook-order-button {
    color: #fff; background: #154b9d; border: 1px solid #154b9d; border-radius: 6px;
    padding: 9px 16px; cursor: pointer; font: inherit; font-weight: 650;
}
.astra-notebook-order-button:disabled { opacity: .6; cursor: default; }
.astra-notebook-total .astra-notebook-order-button { width: 100%; }
.astra-notebook-popular [data-popular-feedback]:empty,
.astra-notebook-calculator :is([data-notebook-order-feedback], [data-notebook-submit-status]):empty { display: none; }
.astra-notebook-popular-grid thead th:not(:first-child) {
    text-align: center !important;
    vertical-align: middle;
}
.astra-notebook-panel {
    box-sizing: border-box;
    padding: 26px;
    background: #f1f5fd;
    border: 1px solid #dce5f3;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(35, 61, 112, .045);
}
.astra-notebook-panel > h2 { margin: 0 0 18px; }
.astra-notebook-panel .astra-notebook-layout { margin: 0; }
.astra-notebook-panel .astra-notebook-total { background: #fff; }

.astra-notebook-order-dialog {
    --notebook-dialog-blue: #365ac0;
    --notebook-dialog-line: #dce5f3;
    --notebook-dialog-ink: #182336;
    box-sizing: border-box;
    width: min(920px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: 0;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--notebook-dialog-line);
    border-radius: 18px;
    color: var(--notebook-dialog-ink);
    font: 400 14px/1.5 Montserrat, Arial, sans-serif;
    box-shadow: 0 25px 100px #172c4940;
}
.astra-notebook-order-dialog *, .astra-notebook-order-dialog *::after { box-sizing: border-box; }
.astra-notebook-order-dialog::backdrop { background: rgb(10 24 46 / 55%); }
.astra-notebook-order-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 24px;
    border-bottom: 1px solid var(--notebook-dialog-line);
}
.astra-notebook-order-heading h2 {
    margin: 0;
    color: inherit;
    font: 700 24px/1.25 Montserrat, Arial, sans-serif;
}
.astra-notebook-close {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--notebook-dialog-line);
    color: var(--notebook-dialog-ink);
    background: #f1f5fd;
    border-radius: 10px;
    cursor: pointer;
    font: 400 28px/1 Arial, sans-serif;
}
.astra-notebook-order-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.astra-notebook-order-grid > * { min-width: 0; padding: 20px 24px 24px; }
.astra-notebook-order-grid h3 { margin: 0 0 14px; color: inherit; font: 700 17px/1.35 Montserrat, Arial, sans-serif; }
.astra-notebook-order-summary { background: #f1f5fd; border-right: 1px solid var(--notebook-dialog-line); }
.astra-notebook-order-product {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--notebook-dialog-line);
    border-radius: 12px;
    background: #fff;
}
.astra-notebook-order-product strong { font-size: 17px; }
.astra-notebook-order-product p { margin: 2px 0 0; color: #52637b; }
.astra-notebook-order-art { display: grid; min-height: 86px; place-items: center; }
.astra-notebook-order-art span {
    position: relative;
    width: 43px;
    height: 59px;
    border: 2px solid #365ac0;
    border-radius: 4px;
    background: repeating-linear-gradient(#e7efff 0 7px, #cbdaf5 7px 8px);
    box-shadow: 3px 3px 0 #fff, 5px 5px 0 #7896ce;
}
.astra-notebook-order-art[data-orientation="landscape"] span { width: 59px; height: 43px; }
.astra-notebook-order-art span::after { content: ""; position: absolute; }
.astra-notebook-order-art[data-edge="top"] span::after {
    inset: -7px 3px auto;
    height: 8px;
    background: repeating-linear-gradient(90deg, #244baf 0 3px, transparent 3px 8px);
}
.astra-notebook-order-art[data-edge="left"] span::after {
    inset: 3px auto 3px -7px;
    width: 8px;
    background: repeating-linear-gradient(0deg, #244baf 0 3px, transparent 3px 8px);
}
.astra-notebook-order-summary dl { margin: 14px 0; }
.astra-notebook-order-summary dl > div {
    display: grid;
    grid-template-columns: minmax(95px, .8fr) minmax(0, 1.25fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--notebook-dialog-line);
    font-size: 13px;
}
.astra-notebook-order-summary dt { margin: 0; color: #52637b; }
.astra-notebook-order-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.astra-notebook-order-grand-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 12px 14px;
    border: 1px solid #ccd9f0;
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
}
.astra-notebook-order-grand-total strong { color: var(--notebook-dialog-blue); font-size: 22px; }
.astra-notebook-contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.astra-notebook-order-grid label:not([hidden]) {
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 0 0 10px;
    color: #344761;
    font-size: 13px;
    font-weight: 600;
}
.astra-notebook-order-grid :is(input:not([type="checkbox"]), select, textarea) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #c8d7ec;
    border-radius: 7px;
    color: var(--notebook-dialog-ink);
    background: #fff;
    font: 400 14px/1.4 Montserrat, Arial, sans-serif;
}
.astra-notebook-order-grid textarea { min-height: 66px; resize: vertical; }
.astra-notebook-order-extras { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--notebook-dialog-line); }
.astra-notebook-order-extras small { font-size: 12px; font-weight: 400; color: #52637b; }
.astra-notebook-order-grid input[type="file"] { border-style: dashed; background: #f8faff; }
.astra-notebook-order-agreements { display: grid; gap: 8px; margin: 13px 0; padding: 11px; border-radius: 8px; background: #f3f6fc; }
.astra-notebook-order-grid label.astra-notebook-agreement {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
}
.astra-notebook-agreement input { margin: 3px 0 0; accent-color: var(--notebook-dialog-blue); }
.astra-notebook-agreement a { color: var(--notebook-dialog-blue); text-decoration: underline; }
.astra-notebook-order-dialog .astra-notebook-order-button { width: 100%; min-height: 44px; background: var(--notebook-dialog-blue); }
.astra-notebook-order-dialog :is(input, select, textarea, button):focus-visible { outline: 2px solid var(--notebook-dialog-blue); outline-offset: 2px; }
@media (max-width: 650px) {
    .astra-notebook-panel { padding: 16px 12px; border-radius: 16px; }
    .astra-notebook-order-grid { grid-template-columns: 1fr; }
    .astra-notebook-order-summary { border-right: 0; border-bottom: 1px solid var(--notebook-dialog-line); }
    .astra-notebook-order-heading, .astra-notebook-order-grid > * { padding: 13px 15px; }
    .astra-notebook-order-heading h2 { font-size: 20px; }
    .astra-notebook-order-grid :is(input, select, textarea) { font-size: 16px; }
}
@media (max-width: 385px) { .astra-notebook-contact-row { grid-template-columns: 1fr; gap: 0; } }
