.cooperation.co-supplier-page {
    gap: 12px;
    padding-block: 12px 34px;
}

.co-supplier-page .co-back { font-size: 13px; }
.co-supplier-intro h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.co-supplier-intro p { font-size: 16px; line-height: 1.55; margin: 0; }

.co-supplier {
    --supplier-selection-border: #2563eb;
    --supplier-selection-fill: #1b4fb6;
    --supplier-selection-text: #183e88;
    --supplier-selection-surface: #e9f1ff;
}

html[data-theme="dark"] .co-supplier {
    --supplier-selection-border: #9bbfff;
    --supplier-selection-fill: #214fa7;
    --supplier-selection-text: #edf5ff;
    --supplier-selection-surface: #19365d;
}

.co-supplier .co-supplier-heading {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    margin: 0 0 16px;
}

.co-supplier .co-supplier-form {
    gap: 18px;
    padding: clamp(10px, 2vw, 18px);
    border-radius: 14px;
    border: 1px solid var(--co-line);
    background: color-mix(in srgb, #2563eb 5%, var(--co-card));
}

.co-supplier-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.co-supplier-column {
    display: grid;
    gap: 16px;
    padding: clamp(14px, 2vw, 22px);
    background: var(--co-card);
    border: 1px solid var(--co-line);
    border-radius: 12px;
    min-width: 0;
}

.co-supplier-column h3 {
    font-size: 21px;
    margin: 0;
    line-height: 1.3;
}

.co-supplier .co-form fieldset { border: 0; margin: 0; padding: 0; background: transparent; min-width: 0; }
.co-supplier legend { font-size: 15px; font-weight: 750; padding: 0; margin-bottom: 9px; }
.co-supplier legend small { font-size: 13px; font-weight: 400; color: var(--co-muted); margin-inline-start: 6px; }

.co-photo-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.co-photo-choice,
.co-product-choice {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.co-photo-choice input,
.co-product-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.co-photo-choice__surface {
    display: block;
    position: relative;
    height: 92px;
    border: 2px solid transparent;
    border-radius: 9px;
    overflow: hidden;
    background: #0b1e34;
    box-sizing: border-box;
}

.co-photo-choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.co-photo-choice__surface::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 12%, #071729 100%);
}

.co-photo-choice strong {
    position: absolute;
    z-index: 1;
    inset: auto 10px 9px;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.co-photo-choice__check,
.co-product-choice__check {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
}

.co-photo-choice__check {
    position: absolute;
    z-index: 2;
    inset: 7px 7px auto auto;
    width: 23px;
    height: 23px;
    border-radius: 6px;
    border-color: #b1c0d2;
    background: #fff;
    color: transparent;
}

.co-photo-choice input:checked + .co-photo-choice__surface {
    border-color: var(--supplier-selection-border);
    box-shadow: 0 0 0 1px var(--supplier-selection-border);
}

.co-photo-choice input:checked + .co-photo-choice__surface .co-photo-choice__check,
.co-product-choice input:checked + .co-product-choice__surface .co-product-choice__check {
    background: var(--supplier-selection-fill);
    border-color: var(--supplier-selection-border);
    color: #fff;
}

.co-photo-choice input:focus-visible + .co-photo-choice__surface,
.co-product-choice input:focus-visible + .co-product-choice__surface,
.co-supplier-more summary:focus-visible {
    outline: 3px solid var(--supplier-selection-border);
    outline-offset: 3px;
}

.co-product-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.co-product-choice { font-size: 14px; line-height: 1.35; max-width: 100%; }

.co-product-choice__surface {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid var(--co-line);
    border-radius: 8px;
    color: var(--co-ink);
    background: var(--co-card);
}

.co-product-choice__check {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border-color: var(--co-muted);
    color: transparent;
}

.co-product-choice input:checked + .co-product-choice__surface {
    border-color: var(--supplier-selection-border);
    background: var(--supplier-selection-surface);
    color: var(--supplier-selection-text);
    box-shadow: inset 0 0 0 1px var(--supplier-selection-border);
    font-weight: 700;
}

.co-supplier .co-fields { gap: 10px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co-supplier .co-field { font-size: 14px; gap: 5px; line-height: 1.4; }

.co-supplier .co-field input,
.co-supplier .co-field textarea {
    font-size: 15px;
    min-height: 44px;
    height: 44px;
    padding: 10px 12px;
    line-height: 1.4;
    border-radius: 8px;
    background: var(--color-input, var(--co-card));
}

.co-supplier .co-field textarea { min-height: 86px; height: 86px; resize: vertical; }

.cooperation .co-supplier .co-field select {
    display: block;
    width: 100%;
    height: 44px !important;
    min-height: 44px !important;
    max-height: none;
    box-sizing: border-box;
    padding: 10px 36px 10px 12px !important;
    border: 1px solid var(--co-line) !important;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    color: var(--co-ink);
    background-color: var(--color-input, var(--co-card));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23677d94' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 14px;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none;
}

.cooperation .co-supplier .co-field select:focus {
    border-color: var(--supplier-selection-border) !important;
    outline: 0;
    box-shadow: 0 0 0 3px #2563eb24;
}

.co-supplier .co-field [aria-invalid="true"] { border-color: #b91c1c !important; }

.co-supplier .co-upload { padding: 12px; border-radius: 9px; }
.co-supplier .co-upload__target { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; text-align: left; padding: 0; }
.co-supplier .co-upload__icon { display: none; }
.co-supplier .co-upload__target strong { font-size: 17px; line-height: 1.3; }
.co-supplier .co-upload__target p { font-size: 13px; line-height: 1.5; margin: 0; grid-column: 1; }

.co-supplier .co-upload__target button {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 13px;
    padding: 10px 12px;
    white-space: normal;
    max-width: 160px;
    min-height: 44px;
}

.co-supplier .co-upload > small { text-align: left; font-size: 12px; margin-top: 8px; }
.co-supplier .co-upload__list { margin-top: 7px; }
.co-supplier .co-upload__list li { padding: 7px 0; }
.co-supplier .co-upload__list li span { min-width: 0; overflow-wrap: anywhere; }

.co-supplier-more {
    border: 1px solid var(--co-line);
    border-radius: 8px;
    background: color-mix(in srgb, #2563eb 3%, var(--co-card));
    color: var(--co-ink);
}

.co-supplier-more summary {
    cursor: pointer;
    min-height: 44px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.co-supplier-more summary::marker { color: var(--supplier-selection-text); }
.co-supplier-more > .co-fields { border-top: 1px solid var(--co-line); padding: 12px; }

.co-supplier-submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.co-supplier-submit p { flex: 1 1 300px; font-size: 13px; line-height: 1.6; margin: 0; }
.co-supplier-submit p span { display: block; color: var(--co-muted); font-size: 12px; margin-top: 2px; }
.co-supplier-submit a { color: var(--supplier-selection-text); text-underline-offset: 3px; }
.co-supplier-submit button { flex-shrink: 0; min-height: 46px; }
.co-supplier-page > .co-helper { margin: 0; font-size: 13px; }
.co-supplier .co-alert { margin-bottom: 14px; }

@media (max-width: 900px) {
    .co-supplier-columns { gap: 14px; }
    .co-supplier .co-upload__target { grid-template-columns: minmax(0, 1fr); }

    .co-supplier .co-upload__target button {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        max-width: 100%;
        margin-top: 5px;
    }
}

@media (max-width: 740px) {
    .cooperation.co-supplier-page { gap: 14px; padding-block: 14px 28px; }
    .co-supplier-intro h1 { font-size: 28px; }
    .co-supplier-columns { grid-template-columns: minmax(0, 1fr); }
    .co-supplier .co-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }

    .co-supplier .co-field input,
    .co-supplier .co-field textarea,
    .cooperation .co-supplier .co-field select { font-size: 16px; }

    .co-supplier legend small { display: block; margin: 3px 0 0; }
    .co-photo-choices { gap: 9px; }
    .co-photo-choice strong { font-size: 14px; }
    .co-product-choice__surface { min-height: 44px; }
    .co-supplier-submit { display: grid; gap: 12px; }
    .co-supplier-submit button { width: 100%; }
    .co-supplier .co-upload__target button { justify-self: stretch; max-width: none; }
}
