.aurora-customization-module,
.aurora-customization-module * {
    box-sizing: border-box;
}

.aurora-customization-module {
    width: 100%;
    color: #202020;
}

.aurora-customization-module button,
.aurora-customization-module input,
.aurora-customization-module select {
    font-family: "Calibri", Arial, sans-serif;
}

.custom-page-wrap {
    width: 930px;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.custom-page-step-title {
    font-family: "Calibri", Arial, sans-serif;
    text-align: center;
    margin: 0 0 45px;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
}

.custom-page-step1,
.custom-page-step2,
.custom-page-step3 {
    margin-bottom: 36px;
}

.custom-page-field-label,
.custom-page-features-label {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Calibri", Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
}

.custom-page-field-label {
    color: #c99f5e;
}

.custom-page-input {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 30px;
    padding: 17px 20px;
    border: 1px solid rgba(32, 32, 32, 0.3);
    border-radius: 5px;
    outline: none;
    background: transparent;
    box-shadow: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.14;
    color: rgba(32, 32, 32, 0.8);
    transition: border-color .2s;
}

.custom-page-input::placeholder {
    color: #bbb;
    font-size: 13px;
}

.custom-page-input:focus,
.custom-page-size-select:focus {
    border-color: #c4a882;
}

.custom-page-input.has-error,
.custom-page-size-select.has-error,
.custom-page-param-row.has-error {
    border-color: #e05555 !important;
}

.custom-page-hint {
    font-family: "Calibri", Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
    color: #c99f5e;
    margin: 0 0 30px;
    font-weight: 400;
}

.custom-page-tabs {
    display: flex;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.custom-page-tab {
    flex: 1;
    min-height: 52px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(32, 32, 32, 0.3);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    padding: 15px 20px;
    color: #202020;
    transition: background .2s, color .2s;
}

.custom-page-tab + .custom-page-tab {
    border-left: 0;
}

.custom-page-tab.active,
.custom-page-tab:hover {
    background: #c99f5e;
    color: #f7f4ef;
    border-color: #c99f5e;
}

.custom-page-table-wrap {
    margin-bottom: 30px;
    padding: 30px;
    box-shadow: 5px 5px 11px rgba(32, 32, 32, 0.03);
    background: #fffcf7;
    border-radius: 8px;
}

.custom-page-table-img {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.custom-page-table-img.active {
    display: block;
}

.custom-page-params-grid-container {
    box-shadow: 5px 5px 11px rgba(32, 32, 32, 0.03);
    background: #fffcf7;
    border-radius: 8px;
    padding: 0 28px;
}

.custom-page-params-title {
    font-family: "Calibri", Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 35px 0 43px;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    color: #202020;
}

.custom-page-params-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 83px;
}

.custom-page-param-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 calc(20% - 10px);
    max-width: calc(20% - 10px);
    min-width: 0;
}

.custom-page-param-field label {
    font-family: "Calibri", Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    color: #202020;
    margin-bottom: 9px;
}

.custom-page-param-row {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color .2s;
}

.custom-page-param-row input {
    flex: 1;
    border: none !important;
    padding: 7px 8px !important;
    margin: 0 !important;
    height: auto !important;
    font-size: 13px;
    color: #202020;
    outline: none;
    box-shadow: none !important;
    width: 100%;
    min-width: 0;
    background: transparent;
}

.custom-page-unit {
    background: transparent;
    padding: 7px 8px;
    white-space: nowrap;
    font-weight: 400;
    font-size: 15px;
    color: rgba(32, 32, 32, 0.3);
}

.custom-page-size-select {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 7px 8px;
    height: 36px;
    font-size: 13px;
    color: #202020;
    width: 100%;
    background: transparent;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}

.custom-page-prints-hint {
    font-family: "Calibri", Arial, sans-serif;
    text-align: center;
    color: #202020;
    margin: 0 0 32px;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
}

.custom-page-prints-slider {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    column-gap: 50px;
    row-gap: 30px;
    position: relative;
    padding-bottom: 16px;
}

.custom-page-prints-arrow {
    width: 32px;
    height: 59px;
    min-height: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 0 !important;
}

.custom-page-prints-viewport {
    overflow: hidden;
    min-width: 0;
    scroll-behavior: smooth;
}

.custom-page-prints-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 4);
    gap: 12px;
    transition: transform .25s ease;
}

.custom-page-print-item {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #202020 !important;
    cursor: pointer;
    text-align: center;
}

.custom-page-print-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .2s;
}

.custom-page-print-item.selected .custom-page-print-thumb {
    border-color: #c99f5e;
}

.custom-page-print-thumb-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-page-print-thumb-inner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.custom-page-print-check {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: #c99f5e;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
}

.custom-page-print-item.selected .custom-page-print-check {
    display: flex;
}

.custom-page-print-name {
    display: block;
    margin-top: 15px;
    font-family: "Calibri", Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    text-transform: uppercase;
    text-align: center;
    color: #202020;
}

.custom-page-prints-progress {
    grid-column: 2;
    width: 200px;
    max-width: 80%;
    height: 2px;
    margin: 0 auto;
    background: rgba(32, 32, 32, 0.15);
    overflow: hidden;
}

.custom-page-prints-progress span {
    display: block;
    height: 100%;
    width: 20%;
    background: #c99f5e;
    transform-origin: left center;
    transition: width .2s ease;
}

.custom-page-info {
    border-radius: 4px;
    padding: 24px 20px;
    margin-bottom: 32px;
    text-align: center;
}

.custom-page-info-title {
    margin: 0 0 16px;
    font-family: "Calibri", Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    color: #202020;
}

.custom-page-info p {
    font-family: "Calibri", Arial, sans-serif;
    margin: 0 0 40px;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    text-transform: uppercase;
    text-align: center;
    color: #202020;
}

.custom-page-info p:last-child {
    margin-bottom: 0;
}

.aurora-custom-message {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: "Calibri", Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
}

.aurora-custom-message.is-visible { display: block; }
.aurora-custom-message.is-error { color: #9f2f2f; border-color: #d9a2a2; background: #fff4f4; }
.aurora-custom-message.is-success { color: #315f38; border-color: #9fc2a4; background: #f2fff4; }

.custom-page-submit-wrap {
    display: flex;
    justify-content: center;
}

.custom-page-submit {
    padding: 16px 0 !important;
    width: 330px;
    min-height: 0;
    display: block;
    margin: 60px 0 110px !important;
    background: #c99f5e !important;
    border: none !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    cursor: pointer;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    color: #f7f4ef !important;
}

.custom-page-submit:hover {
    background: #202020 !important;
}

.custom-page-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.custom-page-no-prints {
    font-family: "Calibri", Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 1090px) {
    .custom-page-wrap { width: 90%; }
}

@media (max-width: 768px) {
    .custom-page-tab { padding: 14px 16px; font-size: 14px; }
    .custom-page-params-grid-container { padding: 0 12px; }
    .custom-page-prints-slider { column-gap: 18px; }
}

@media (max-width: 600px) {
    .custom-page-wrap { width: calc(100% - 30px); }
    .custom-page-param-field { flex: 1 1 calc(50% - 6px); max-width: calc(50% - 6px); }
    .custom-page-step-title { font-size: 15px; margin-bottom: 20px; }
    .custom-page-field-label { font-size: 12px; }
    .custom-page-features-label { font-size: 13px; }
    .custom-page-hint { font-size: 11px; }
    .custom-page-prints-arrow { display: none; }
    .custom-page-prints-slider { display: block; }
    .custom-page-prints-track { grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; }
    .custom-page-prints-progress { margin-top: 24px; }
    .custom-page-submit { width: 100%; max-width: 330px; margin-bottom: 70px !important; }
    .custom-page-tab { padding: 12px 8px; font-size: 13px; }
    .custom-page-params-title { font-size: 15px; }
    .custom-page-table-wrap { padding: 8px 10px; }
    .custom-page-prints-hint { font-size: 12px; color: #c99f5e; }
    .custom-page-print-name { font-size: 12px; }
    .custom-page-info { padding-left: 0; padding-right: 0; }
    .custom-page-info p { font-size: 12px; line-height: 1.55; margin-bottom: 25px; }
}
