.fcms-form {
    max-width: 1120px;
    margin: 0 auto;
    color: #5c5c5c;
    font-family: Arial, Helvetica, sans-serif;
}

.fcms-result {
    margin: 24px 0 12px;
    padding: 18px 20px;
    border: 1px solid #b8dfc3;
    border-radius: 14px;
    background: #eefbf1;
}

.fcms-result[hidden] {
    display: none !important;
}

.fcms-result strong {
    display: block;
    color: #0e9a3d;
    font-size: 20px;
    font-weight: 800;
}

.fcms-result p {
    margin: 8px 0 0;
    color: #56745f;
    font-size: 14px;
    font-weight: 700;
}

.fcms-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 12px 0 24px;
    padding: 18px 20px;
    border: 1px solid #ead2ba;
    border-radius: 14px;
    background: #fff8f0;
}

.fcms-payment[hidden] {
    display: none !important;
}

.fcms-payment-copy {
    display: grid;
    gap: 8px;
}

.fcms-payment-copy strong {
    color: #8a4b12;
    font-size: 18px;
    font-weight: 800;
}

.fcms-payment-copy p {
    margin: 0;
    color: #6d5d4d;
    font-size: 14px;
    font-weight: 700;
}

.fcms-payment-copy span {
    display: block;
    margin-bottom: 4px;
    color: #8a8a8a;
    font-size: 11px;
    text-transform: uppercase;
}

.fcms-payment-copy code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 6px 8px;
    border-radius: 6px;
    background: #fff;
    color: #4f4f4f;
}

.fcms-payment img {
    width: 148px;
    height: 148px;
    flex: 0 0 148px;
    object-fit: contain;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.fcms-hero h2 {
    margin: 0 0 22px;
    color: #111;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.fcms-hero h2 span {
    color: #ff6a00;
}

.fcms-hero p {
    margin: 0 0 8px;
    color: #9a9a9a;
    font-size: 15px;
    line-height: 1.35;
}

.fcms-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
    gap: 14px;
    margin: 54px 0 28px;
}

.fcms-step {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    color: #c9c9c9;
    font-weight: 700;
}

.fcms-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 2px solid #d6d6d6;
    border-radius: 999px;
    background: #f8f8f8;
    font-size: 20px;
    color: #c8c8c8;
}

.fcms-step.is-active {
    color: #ff7a15;
}

.fcms-step.is-complete {
    color: #0fb335;
}

.fcms-step.is-active .fcms-step-badge {
    border-color: #ff7a15;
    background: #fff3ea;
    color: #ff7a15;
}

.fcms-step.is-complete .fcms-step-badge {
    border-color: #0fb335;
    background: #b9e9c0;
    color: #0fb335;
}

.fcms-step-line {
    display: block;
    height: 2px;
    background: #9a9a9a;
}

.fcms-panel {
    display: none;
}

.fcms-panel.is-active {
    display: block;
}

.fcms-section-head {
    margin-bottom: 18px;
}

.fcms-section-head h3 {
    display: inline-block;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #ff7a15;
    color: #676767;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Barlow';
}

.fcms-section-head p {
    margin: 12px 0 0;
    color: #9a9a9a;
    font-size: 15px;
}

.fcms-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 34px;
}

.fcms-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fcms-grid-address-top {
    grid-template-columns: 0.9fr 1.5fr 0.6fr;
}

.fcms-grid-address-bottom {
    grid-template-columns: 1fr 1fr 0.65fr 0.65fr;
}

.fcms-field {
    display: grid;
    gap: 6px;
}

.fcms-field span,
.fcms-miniature-section-title {
    color: #adadad;
    font-size: 11px;
    font-weight: 700;
}

.fcms-field input,
.fcms-field select,
.fcms-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #fff;
    color: #8b8b8b;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fcms-field input:focus,
.fcms-field select:focus,
.fcms-field textarea:focus {
    outline: 0;
    border-color: #ff7a15;
    box-shadow: 0 0 0 1px #ff7a15;
}

.fcms-field textarea {
    min-height: 100px;
    padding: 14px 16px;
    resize: vertical;
}

.fcms-field.is-loading input {
    border-color: #5d87ff;
    background: #f5f9ff;
    box-shadow: 0 0 0 1px #5d87ff;
}

.fcms-field.is-invalid input,
.fcms-field.is-invalid select,
.fcms-field.is-invalid textarea {
    border-color: #d32f2f;
    background: #fde0e0;
    box-shadow: 0 0 0 1px #d32f2f;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fcms-field.is-invalid input:focus,
.fcms-field.is-invalid select:focus,
.fcms-field.is-invalid textarea:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 1px #d32f2f;
}

.fcms-field-error {
    color: #d32f2f;
    font-size: 11px;
    font-weight: 700;
}

.fcms-feedback:not(:empty) {
    display: block;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #bfd6ff;
    border-radius: 8px;
    background: #eef5ff;
    color: #2357a5;
    font-size: 14px;
    font-weight: 700;
}

.fcms-feedback.is-error {
    border-color: #f2b8b5;
    background: #fff1f1;
    color: #b3261e;
}

.fcms-feedback.is-success {
    border-color: #b8dfc3;
    background: #eefbf1;
    color: #0e7d35;
}

.fcms-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.fcms-btn {
    min-width: 190px;
    min-height: 40px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 18px;
    font-weight: 600;
}

.fcms-btn-primary {
    background: #ff7300;
    color: #fff;
}

.fcms-btn-outline {
    border-color: #ff9d59;
    background: #fff;
    color: #ff7a15;
}

.fcms-btn-inline {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fcms-miniature-card {
    margin-bottom: 16px;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.fcms-miniature-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 22px;
    background: #111;
    color: #fff;
    width: 100%;
    border: 0;
    text-align: left;
}

.fcms-miniature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #ff7a15;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.fcms-miniature-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.fcms-miniature-price {
    font-size: 14px;
    font-weight: 700;
}

.fcms-miniature-head-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.fcms-miniature-chevron {
    font-size: 20px;
    line-height: 1;
    transform: rotate(180deg);
}

.fcms-miniature-toggle.is-open .fcms-miniature-chevron {
    transform: rotate(0deg);
}

.fcms-miniature-body {
    padding: 18px 12px 22px;
    display: none;
}

.fcms-shipping-options {
    display: grid;
    gap: 12px;
}

.fcms-shipping-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff6eb;
    color: #9a5e17;
    font-size: 13px;
    font-weight: 700;
}

.fcms-shipping-note.is-loading {
    background: #eef5ff;
    color: #2357a5;
}

.fcms-tracking {
    max-width: 880px;
    margin: 0 auto;
}

.fcms-tracking-form {
    margin-bottom: 20px;
}

.fcms-tracking-result {
    margin-top: 20px;
}

.fcms-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.fcms-tracking-header strong {
    color: #111;
    font-size: 20px;
}

.fcms-tracking-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef5ff;
    color: #2357a5;
    font-size: 13px;
    font-weight: 700;
}

.fcms-tracking-products {
    margin-top: 18px;
}

.fcms-tracking-payment {
    margin: 18px 0 0;
}

.fcms-tracking-textarea {
    width: 100%;
    min-height: 130px;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #fff;
    color: #5f5f5f;
    resize: vertical;
}

.fcms-tracking-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.fcms-miniature-body.is-open {
    display: block;
}

.fcms-miniature-section {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #e6e6e6;
}

.fcms-miniature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fcms-miniature-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fcms-miniature-grid-1 {
    grid-template-columns: 1fr;
}

.fcms-btn-add {
    margin-top: 8px;
}

.fcms-btn-remove {
    min-width: 210px;
}

.fcms-miniature-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.fcms-box {
    margin-bottom: 14px;
    border: 1px solid #e4e8ef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.fcms-box-head {
    padding: 12px 18px;
    background: #f5f8fc;
    color: #7e8aa3;
    font-size: 13px;
    font-weight: 700;
}

.fcms-radio-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid #edf1f7;
}

.fcms-radio-card:first-of-type {
    border-top: 0;
}

.fcms-radio-card input {
    width: 18px;
    height: 18px;
}

.fcms-radio-content {
    display: grid;
    gap: 6px;
    flex: 1;
}

.fcms-radio-content strong {
    color: #65748f;
    font-size: 15px;
}

.fcms-radio-content small {
    color: #a3adc0;
    font-size: 12px;
}

.fcms-radio-card em,
.fcms-radio-card b {
    color: #86a1c3;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.fcms-link-btn {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px dashed #dce3ef;
    border-radius: 8px;
    background: #f8fbff;
    color: #5d87ff;
    font-size: 14px;
    font-weight: 600;
}

.fcms-alert {
    margin-bottom: 18px;
    padding: 22px 20px;
    border: 1px solid #ffd9c3;
    border-left: 4px solid #ff7300;
    background: #fff8f4;
    color: #999;
    font-size: 16px;
    line-height: 1.45;
}

.fcms-preview-group {
    margin-bottom: 18px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.fcms-preview-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: #ededed;
    border: 0;
    color: #6a6a6a;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.fcms-preview-accordion-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fcms-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ff7300;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.fcms-preview-accordion-icon {
    font-size: 18px;
    line-height: 1;
}

.fcms-preview-accordion-toggle.is-open .fcms-preview-accordion-icon {
    transform: rotate(180deg);
}

.fcms-preview-accordion-body {
    display: none;
    padding: 12px 14px;
}

.fcms-preview-accordion-body.is-open {
    display: block;
}

.fcms-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fcms-preview-label {
    color: #ff7300;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.fcms-preview-value {
    color: #707070;
    font-size: 15px;
    font-weight: 700;
}

.fcms-preview-stack {
    display: grid;
    gap: 16px;
}

.fcms-preview-section-title {
    margin: 4px 0 12px;
    color: #ff7300;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.fcms-preview-grid-client {
    margin-bottom: 12px;
}

.fcms-preview-miniature-card {
    border: 1px solid #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.fcms-preview-miniature-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    background: #1c1714;
    color: #fff;
    width: 100%;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.fcms-preview-miniature-head strong {
    flex: 1;
    font-size: 14px;
}

.fcms-preview-miniature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ff7300;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.fcms-preview-grid-miniature {
    padding: 14px 12px 8px;
}

.fcms-preview-miniature-body {
    display: none;
}

.fcms-preview-miniature-body.is-open {
    display: block;
}

.fcms-preview-total{
    padding: 20px;
    font-size: 16px;
    font-weight: 800;
}

.fcms-preview-note {
    margin: 0 12px 12px;
    padding: 12px 12px 10px;
    border: 1px solid #ffd6bf;
    border-left: 3px solid #ff7300;
    background: #fff8f3;
}

.fcms-preview-note-label {
    margin-bottom: 6px;
    color: #a7a7a7;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.fcms-preview-note-text,
.fcms-preview-empty {
    color: #8e8e8e;
    font-size: 13px;
    line-height: 1.45;
}

.fcms-feedback {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: none;
    width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid #bfd6ff;
    border-radius: 14px;
    background: #eef5ff;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.16);
    color: #2357a5;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
}

.fcms-feedback:not(:empty) {
    display: block;
}

.fcms-feedback.is-error {
    border-color: #f2b8b5;
    background: #fff1f1;
    color: #b3261e;
}

.fcms-feedback.is-success {
    border-color: #b8dfc3;
    background: #eefbf1;
    color: #0e9a3d;
}

.fcms-feedback.is-info {
    border-color: #bfd6ff;
    background: #eef5ff;
    color: #2357a5;
}

.fcms-panel[data-step-panel="4"] .fcms-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.fcms-panel[data-step-panel="4"] .fcms-btn-primary {
    min-width: 220px;
    background: #08b322;
}

.fcms-panel[data-step-panel="4"] .fcms-btn-outline {
    min-width: 170px;
}

@media (max-width: 980px) {
    .fcms-steps {
        grid-template-columns: 1fr 1fr;
    }

    .fcms-step-line {
        display: none;
    }

    .fcms-grid-2,
    .fcms-grid-address-top,
    .fcms-grid-address-bottom,
    .fcms-miniature-grid,
    .fcms-miniature-grid-2,
    .fcms-preview-grid {
        grid-template-columns: 1fr;
    }

    .fcms-miniature-head,
    .fcms-preview-miniature-head,
    .fcms-actions,
    .fcms-panel[data-step-panel="4"] .fcms-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fcms-feedback {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .fcms-payment {
        align-items: stretch;
        flex-direction: column;
    }

    .fcms-payment img {
        width: 100%;
        max-width: 190px;
        height: auto;
        aspect-ratio: 1;
    }
}
