.iphones-page-shell .iphones-builder-configurator-title,
.ipads-page-shell .ipads-builder-configurator-title {
    margin-bottom: 24px;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -.025em;
}

.iphones-page-shell .iphones-builder-controls-grid {
    gap: 12px;
}

.iphones-page-shell .iphones-builder-field--choices:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    min-height: 0;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.iphones-page-shell .iphones-builder-field--choices .iphones-builder-label {
    color: #17191d;
    font-size: 16px;
    font-weight: 700;
}

.iphones-builder-choices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.iphones-builder-choice-skeleton:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.iphones-builder-choice-skeleton > span {
    width: 76px;
    height: 38px;
    border-radius: 6px;
    background: #e0e0e0;
    animation: pulse 1.5s ease-in-out infinite;
}

#iphones-model-choices .iphones-builder-choice-skeleton > span {
    width: 148px;
}

#iphones-color-choices .iphones-builder-choice-skeleton > span {
    width: 34px;
    height: 34px;
    margin-inline: 2px 12px;
    border-radius: 50%;
}

.iphones-builder-choices.is-loading .iphones-builder-choice-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .iphones-builder-choice-skeleton > span {
        animation: none;
    }
}

.iphones-builder-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 76px;
    max-width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #dce1e7;
    border-radius: 6px;
    background: #fff;
    color: #17191d;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.iphones-builder-choice:not(.iphones-builder-choice--swatch):not(:disabled):hover,
.iphones-builder-choice:not(.iphones-builder-choice--swatch)[aria-pressed="true"] {
    border-color: #0079d2;
    background: #edf6ff;
    color: #0064b0;
}

.iphones-builder-choice:disabled {
    cursor: not-allowed;
}

.iphones-builder-choices .iphones-builder-choice[aria-pressed="true"]:disabled {
    opacity: 1;
    cursor: default;
}

.iphones-builder-choices .iphones-builder-choice:disabled:not([aria-pressed="true"]):not(.iphones-builder-choice--swatch),
#iphones-quantity-choices .iphones-builder-choice:disabled {
    border-color: #e0e4e9;
    background: #f4f5f7;
    color: #6b7280;
    opacity: 1;
    cursor: not-allowed;
}

.iphones-builder-choice.iphones-builder-choice--swatch {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 2px 12px 2px 2px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--swatch-color);
    box-shadow: 0 1px 4px #1c273852;
}

.iphones-builder-choice--swatch[aria-pressed="true"],
.iphones-builder-choice--swatch:not(:disabled):hover {
    border-color: #0079d2;
}

.iphones-builder-choices .iphones-builder-choice--swatch:disabled:not([aria-pressed="true"]) {
    background: var(--swatch-color);
    border-color: #e0e4e9;
    box-shadow: none;
    opacity: .45;
}

.iphones-builder-choice:focus-visible,
.iphones-builder-choices:focus-visible {
    outline: 2px solid #0079d2;
    outline-offset: 2px;
}

.iphones-builder-choice-status,
.iphones-builder-custom-quantity > label {
    color: #5c6570;
    font-size: 14px;
}

.iphones-builder-custom-quantity:not([hidden]) {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin-top: 8px;
}

.iphones-builder-quantity-stepper {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    width: min(100%, 214px);
    min-height: 36px;
    border: 1px solid #edf0f3;
    border-radius: 6px;
}

.iphones-builder-quantity-stepper > button,
.iphones-builder-quantity-stepper > input {
    min-width: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: #0064b0;
    text-align: center;
}

.iphones-builder-quantity-stepper > button {
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #deedfc;
    color: #173656;
    cursor: pointer;
}

.iphones-builder-quantity-stepper > button::before,
.iphones-builder-quantity-stepper > button[data-quantity-step="1"]::after {
    content: '';
    grid-area: 1 / 1;
    width: 12px;
    height: 2px;
    background: currentColor;
}

.iphones-builder-quantity-stepper > button[data-quantity-step="1"]::after {
    transform: rotate(90deg);
}

.iphones-builder-quantity-stepper > button:disabled {
    background: #f4f5f7;
    color: #6b7280;
    opacity: 1;
    cursor: not-allowed;
}

.iphones-builder-quantity-stepper > input {
    appearance: textfield;
    font-weight: 700;
}

.iphones-builder-quantity-stepper > :focus-visible {
    outline: 2px solid #0079d2;
    outline-offset: -2px;
}

.iphones-builder-quantity-stepper > input:focus-visible {
    outline: 0;
    box-shadow: inset 0 -2px #0079d2;
}

.iphones-builder-quantity-stepper > input::-webkit-inner-spin-button,
.iphones-builder-quantity-stepper > input::-webkit-outer-spin-button {
    appearance: none;
}
