.gpc-calculator-wrap {
    direction: rtl;
    width: 100%;
    font-family: inherit;
}

.gpc-calculator,
.gpc-calculator * {
    box-sizing: border-box;
}

.gpc-step-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.gpc-main-panel {
    min-width: 0;
    padding: 4px 0 30px;
}

.gpc-title-row {
    position: relative;
    border-bottom: 1px solid #e8a247;
    padding: 0 0 12px;
    margin-bottom: 28px;
}

.gpc-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gpc-title-marker,
.gpc-section-marker {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #efad50;
    border-radius: 3px;
    flex: 0 0 auto;
}

.gpc-title-line h1,
.gpc-section-title h2 {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
}

.gpc-base-price {
    margin-top: 4px;
    margin-right: 30px;
    color: #777;
    font-size: 12px;
}

.gpc-base-price strong {
    color: #222;
}

.gpc-stepper {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gpc-step-dot {
    appearance: none;
    border: 0;
    background: transparent;
    color: #a0a0a0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.gpc-step-dot span {
    width: 27px;
    height: 27px;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 12px;
}

.gpc-step-dot b {
    font-size: 12px;
    font-weight: 500;
}

.gpc-step-dot.is-active,
.gpc-step-dot.is-complete {
    color: #111;
}

.gpc-step-dot.is-active span {
    background: #efad50;
    border-color: #efad50;
    color: #111;
}

.gpc-step-dot.is-complete span {
    border-color: #efad50;
    color: #d88e27;
}

.gpc-step-content {
    position: relative;
    min-height: 390px;
    padding: 0 0 15px;
}

.gpc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e8a247;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.gpc-section-title h2 small {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.gpc-help-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #006edc;
    text-decoration: none;
    font-size: 14px;
    margin: 0 0 22px;
}

.gpc-help-link span {
    font-size: 25px;
    line-height: 10px;
}

.gpc-dimensions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 42px;
}

.gpc-dimension-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.gpc-dimension-field label span {
    color: #666;
    font-size: 12px;
    font-weight: 400;
}

.gpc-step-input {
    width: 100%;
    height: 52px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    padding: 0 15px;
    font-size: 17px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.gpc-step-input:focus {
    border-color: #efad50;
    box-shadow: 0 0 0 3px rgba(239,173,80,.13);
}

.gpc-step-note {
    margin-top: 18px;
    color: #b9b9b9;
    font-size: 13px;
}

.gpc-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.gpc-choice-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.gpc-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gpc-choice-card-inner {
    min-height: 155px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.gpc-choice-card:hover .gpc-choice-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.gpc-choice-card.is-selected .gpc-choice-card-inner {
    border-color: #efad50;
    box-shadow: 0 0 0 1px #efad50;
}

.gpc-choice-image,
.gpc-choice-placeholder {
    width: 100%;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gpc-choice-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gpc-choice-placeholder {
    background: #fafafa;
}

.gpc-choice-label {
    width: 100%;
    min-height: 39px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 8px;
    text-align: center;
}

.gpc-choice-card.is-selected .gpc-choice-label {
    background: #efad50;
}

.gpc-choice-price {
    position: absolute;
    top: 7px;
    left: 8px;
    color: #666;
    font-size: 10px;
}

.gpc-choice-price small {
    font-size: inherit;
}

.gpc-choice-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #efad50;
    color: #111;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.gpc-choice-card.is-selected .gpc-choice-check {
    display: inline-flex;
}

.gpc-field-wrap {
    max-width: 500px;
    margin-top: 28px;
}

.gpc-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.gpc-step-back,
.gpc-step-next,
.gpc-add-to-cart-button {
    min-width: 145px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.gpc-step-back {
    background: #f3f3f3;
    color: #333;
}

.gpc-step-next,
.gpc-add-to-cart-button {
    background: #efad50;
    color: #111;
}

.gpc-step-next:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.gpc-step-next:not(:disabled):hover,
.gpc-add-to-cart-button:hover {
    transform: translateY(-1px);
}

.gpc-result {
    display: none;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    background: #fff;
}

.gpc-result.is-visible {
    display: block;
}

.gpc-result-title {
    color: #555;
    font-size: 13px;
}

.gpc-result .gpc-price-display {
    margin: 7px 0 15px;
    color: #111;
    font-size: 25px;
    font-weight: 800;
}

.gpc-price-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
    color: #555;
    font-size: 12px;
}

.gpc-price-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.gpc-result .gpc-add-to-cart-button {
    width: 100%;
}

.gpc-order-card {
    position: sticky;
    top: 25px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    padding: 22px 30px 15px;
}

.gpc-order-card h2 {
    text-align: center;
    margin: 0;
    color: #111;
    font-size: 18px;
}

.gpc-order-divider {
    width: 190px;
    height: 1px;
    background: #efad50;
    margin: 10px auto 17px;
}

.gpc-summary-content {
    min-height: 250px;
    color: #111;
    font-size: 13px;
}

.gpc-summary-line {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 7px;
    margin-bottom: 9px;
    line-height: 1.8;
}

.gpc-summary-line span {
    color: #777;
}

.gpc-summary-line strong {
    font-weight: 600;
    text-align: left;
}

.gpc-summary-empty {
    text-align: center;
    color: #aaa;
    padding-top: 70px;
}

.gpc-order-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #ddd;
    padding-top: 13px;
    margin-top: 10px;
    font-size: 13px;
}

.gpc-order-price-row strong {
    font-size: 16px;
}

.gpc-order-button {
    width: 100%;
    margin-top: 15px;
}

.gpc-message-box {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.gpc-error {
    color: #b42318;
    background: #fff1f0;
}

.gpc-info {
    color: #145da0;
    background: #eef7ff;
}

.gpc-loading,
.gpc-error {
    padding: 25px;
    text-align: center;
}

@media (max-width: 900px) {
    .gpc-step-layout {
        grid-template-columns: 1fr;
    }

    .gpc-order-card {
        position: static;
        order: -1;
    }

    .gpc-summary-content {
        min-height: 0;
    }

    .gpc-summary-empty {
        padding-top: 15px;
    }
}

@media (max-width: 600px) {
    .gpc-dimensions-grid,
    .gpc-choice-grid,
    .gpc-price-breakdown {
        grid-template-columns: 1fr;
    }

    .gpc-order-card {
        padding: 18px;
    }

    .gpc-step-content {
        min-height: 300px;
    }

    .gpc-stepper {
        display: none;
    }
}
