/* Ayancık sipariş merkezi. Bu stiller yalnızca sipariş sayfalarında yüklenir. */
.aco-main {
    --aco-ink: #292824;
    --aco-muted: #67635c;
    --aco-paper: #f4f1eb;
    --aco-line: #dedad2;
    --aco-accent: #ac1b23;
    background: var(--aco-paper);
    color: var(--aco-ink);
}

.aco-hero {
    background: #272623;
    color: #fff;
    padding: clamp(28px, 4vw, 58px) 0;
}

.aco-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    align-items: center;
    gap: clamp(24px, 6vw, 84px);
}

.aco-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
    color: #d7d1c7;
    font-size: 13px;
}

.aco-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.aco-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 11px;
    color: #d2bda1;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .14em;
}

.aco-kicker > span { width: 17px; height: 2px; background: #e45860; }
.aco-main .aco-hero h1 {
    margin: 0;
    font-size: clamp(43px, 5.5vw, 75px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.065em;
}

.aco-hero h1 em { color: #e4c8ac; font-style: normal; }
.aco-lead {
    max-width: 460px;
    margin: 16px 0 18px;
    color: #e2ddd4;
    font-size: 16px;
    line-height: 1.65;
}

.aco-hero-phone {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid #5d5851;
    border-radius: 8px;
    font-size: 13px;
}

.aco-hero-phone span { color: #d7d1c7; }
.aco-hero-phone:hover { background: #3a3834; }
.aco-hero-image {
    position: relative;
    margin: 0;
    aspect-ratio: 1.75;
    overflow: hidden;
    border: 1px solid #534d45;
    border-radius: 14px;
    background: #41372f;
}

.aco-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aco-hero-image.aco-hero-banner { aspect-ratio: auto; max-height: none; }
.aco-hero-banner img { height: auto; }
.aco-content { padding-top: 24px; padding-bottom: clamp(36px, 6vw, 78px); }
.aco-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 550px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid var(--aco-line);
    border-radius: 12px;
    background: #e9e5dd;
}

.aco-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px 11px;
    border-radius: 7px;
    text-align: center;
    font-weight: 650;
    font-size: 14px;
}

.aco-tabs a > span { color: var(--aco-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.aco-tabs a[aria-current="page"] { background: #fff; color: var(--aco-accent); box-shadow: 0 1px 4px #29282416; }
.aco-tabs a[aria-current="page"] > span { color: var(--aco-accent); }
.aco-tabs a:hover { background: #fff9; }
.aco-form { display: grid; gap: 16px; }
.aco-card {
    padding: clamp(18px, 2.5vw, 32px);
    border: 1px solid var(--aco-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px #29282408;
}

.aco-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.aco-step {
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    height: 37px;
    border-radius: 9px;
    background: #f7eae7;
    color: var(--aco-accent);
    font-size: 12px;
    font-weight: 750;
}

.aco-main .aco-card h2, .aco-main .aco-alert h2 {
    margin: 0;
    font-size: clamp(20px, 2.3vw, 29px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.aco-card-head p, .aco-send-bar p {
    margin: 5px 0 0;
    color: var(--aco-muted);
    font-size: 14px;
    line-height: 1.55;
}

.aco-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 17px; }
.aco-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.aco-field-wide { grid-column: span 2; }
.aco-label, .aco-column-label { font-size: 13px; font-weight: 650; line-height: 1.35; }
.aco-required { color: var(--aco-accent); }
.aco-form :is(input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]), select, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid #d4cfc6;
    border-radius: 7px;
    background: #fdfcf9;
    color: var(--aco-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.aco-form textarea { resize: vertical; }
.aco-field-control { min-width: 0; }
.aco-field-control > :is(input, select, textarea) { display: block; }
.aco-field-error {
    display: block;
    color: #8f141c;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.aco-field-error:not(:empty) { margin-top: 5px; }
.aco-form [data-order-rows-error] { margin: 0; }
.aco-form [data-order-rows-error]:not(:empty) { margin-top: 9px; }
.aco-form .aco-field .aco-field-control > [aria-invalid="true"][data-order-validate] {
    border-color: var(--aco-accent);
    background: #fff6f4;
}

.aco-form :is(input, select, textarea):focus-visible,
.aco-main :is(a, button):focus-visible,
.aco-alert:focus-visible { outline: 2px solid var(--aco-accent); outline-offset: 2px; }
.aco-form input::placeholder, .aco-form textarea::placeholder { color: #777269; }
.aco-form input[type="checkbox"] { width: 17px; height: 17px; margin: 0; flex: 0 0 17px; accent-color: var(--aco-accent); }
.aco-stock { grid-template-columns: 1.2fr 1.15fr .85fr .8fr 1fr; margin-bottom: 23px; }
.aco-form[data-order-kind="plaka"] {
    --aco-columns: 32px minmax(54px, .65fr) minmax(118px, 1.6fr) minmax(100px, 1.15fr)
        minmax(78px, .85fr) minmax(70px, .8fr) minmax(70px, .8fr) minmax(105px, 1.45fr) 36px;
}

.aco-form[data-order-kind="ebatlama"] {
    --aco-columns: 32px minmax(54px, .65fr) minmax(71px, .85fr) minmax(71px, .85fr)
        minmax(140px, 1.55fr) minmax(100px, 1fr) minmax(94px, 1fr) minmax(100px, 1.4fr) 36px;
}

.aco-line-head, .aco-line {
    display: grid;
    grid-template-columns: var(--aco-columns);
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
}

.aco-line-head {
    border-radius: 8px 8px 0 0;
    background: #f0ede7;
    color: #58544d;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.aco-line {
    min-width: 0;
    border: 1px solid #e5e1d8;
    border-top: 0;
}

.aco-line:last-child { border-radius: 0 0 8px 8px; }
.aco-line:nth-child(even) { background: #faf8f4; }
.aco-line-number {
    display: grid;
    place-items: center;
    width: 27px;
    min-height: 27px;
    border-radius: 7px;
    background: #f2eee6;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.aco-line .aco-column-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.aco-mobile-label { display: none; }
.aco-line :is(input[type="text"], select) { min-height: 41px; padding: 8px; font-size: 14px; }
.aco-line-checks { min-width: 0; margin: 0; padding: 0; border: 0; }
.aco-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 5px; }
.aco-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.aco-options input[type="checkbox"] { width: 15px; height: 15px; flex-basis: 15px; }
.aco-operations .aco-options { grid-template-columns: 1fr; }
.aco-remove {
    display: grid;
    place-items: center;
    width: 36px;
    height: 38px;
    border: 1px solid #e4d9d4;
    border-radius: 7px;
    background: #fff;
    color: var(--aco-accent);
    font: inherit;
    font-size: 23px;
    cursor: pointer;
}

.aco-remove:hover:not(:disabled) { background: #fff0ec; }
.aco-remove:disabled { opacity: .35; cursor: default; }
.aco-main [hidden] { display: none !important; }
.aco-line-actions, .aco-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 13px;
}

.aco-line-count { color: var(--aco-muted); font-size: 13px; }
.aco-main .aco-secondary, .aco-main .aco-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
}

.aco-main .aco-secondary { background: #fff; border-color: #d5d0c7; color: var(--aco-ink); }
.aco-main .aco-secondary:hover { background: #f4f0e9; }
.aco-main .aco-button { background: var(--aco-accent); color: #fff; }
.aco-main .aco-button:hover { background: #8f141c; }
.aco-main :is(.aco-secondary, .aco-button):disabled { opacity: .6; cursor: default; }
.aco-main .aco-pvc-open {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    min-height: 48px;
    padding: 8px 10px;
    font-size: 12px;
    text-align: left;
}

.aco-pvc-open small { color: var(--aco-muted); font-size: 12px; font-weight: 500; }
.aco-pvc-dialog {
    box-sizing: border-box;
    width: min(430px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100% - 24px);
    margin: auto;
    padding: clamp(16px, 4vw, 26px);
    border: 1px solid var(--aco-line);
    border-radius: 14px;
    background: #fff;
    color: var(--aco-ink);
    box-shadow: 0 16px 56px #29282440;
}

.aco-pvc-dialog::backdrop { background: #2726239c; }
.aco-main .aco-pvc-dialog h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.aco-pvc-dialog p { margin: 8px 0 16px; color: var(--aco-muted); font-size: 14px; line-height: 1.5; }
.aco-pvc-diagram {
    display: grid;
    grid-template:
        ". top ." 46px
        "left board right" minmax(106px, auto)
        ". bottom ." 46px
        / 54px minmax(0, 1fr) 54px;
}

.aco-pvc-board {
    grid-area: board;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    padding: 10px 6px;
    background: #f9f6ef;
    color: var(--aco-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    overflow-wrap: anywhere;
}

.aco-pvc-board strong { color: var(--aco-ink); }
.aco-main .aco-pvc-edge {
    --aco-pvc-line: #b9b0a3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 3px;
    border: 0;
    background: #eeeae2;
    color: var(--aco-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
}

.aco-pvc-edge[data-order-pvc-edge="long1"] { grid-area: top; border-radius: 8px 8px 0 0; border-bottom: 3px solid var(--aco-pvc-line); }
.aco-pvc-edge[data-order-pvc-edge="long2"] { grid-area: bottom; border-radius: 0 0 8px 8px; border-top: 3px solid var(--aco-pvc-line); }
.aco-pvc-edge[data-order-pvc-edge="short1"] { grid-area: left; border-radius: 8px 0 0 8px; border-right: 3px solid var(--aco-pvc-line); }
.aco-pvc-edge[data-order-pvc-edge="short2"] { grid-area: right; border-radius: 0 8px 8px 0; border-left: 3px solid var(--aco-pvc-line); }
.aco-pvc-edge:hover { background: #e5dfd3; }
.aco-main .aco-pvc-dialog .aco-pvc-edge:focus-visible { outline-offset: -5px; }
.aco-pvc-edge[aria-pressed="true"] { --aco-pvc-line: var(--aco-accent); background: #fae8e7; color: #891820; }
.aco-pvc-check { display: none; }
.aco-pvc-edge[aria-pressed="true"] .aco-pvc-check { display: inline; }
.aco-pvc-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 17px; }
.aco-pvc-actions [aria-pressed="true"] { border-color: var(--aco-accent); color: var(--aco-accent); }
.aco-drawing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin-top: 20px;
    padding: 14px;
    border: 1px dashed #bfb5a7;
    border-radius: 9px;
    background: #fcfaf6;
}

.aco-drawing-copy { display: grid; gap: 3px; min-width: 0; }
.aco-drawing-input { min-width: 0; }
.aco-drawing-copy > span { color: var(--aco-muted); font-size: 12px; }
.aco-drawing input { max-width: 100%; min-width: 0; font: inherit; font-size: 13px; }
.aco-drawing input[aria-invalid="true"]::file-selector-button { border-color: var(--aco-accent); }
.aco-drawing input::file-selector-button {
    min-height: 43px;
    margin-right: 9px;
    padding: 7px 11px;
    border: 1px solid var(--aco-line);
    border-radius: 7px;
    background: #fff;
    color: var(--aco-ink);
    font: inherit;
    cursor: pointer;
}

.aco-copy {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 17px;
    padding: 13px 14px;
    border-radius: 8px;
    background: #f6f2eb;
    cursor: pointer;
}

.aco-copy input { margin-top: 3px !important; }
.aco-copy > span { display: grid; gap: 3px; }
.aco-copy strong { font-size: 14px; }
.aco-copy small { color: var(--aco-muted); font-size: 12px; }
.aco-send-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 17px;
}

.aco-send-bar .aco-button { flex-shrink: 0; min-height: 50px; }
.aco-alert, .aco-preview {
    margin: 0 0 16px;
    padding: 14px 17px;
    border: 1px solid #e4c1bc;
    border-radius: 9px;
    background: #fff3ee;
    font-size: 14px;
}

.aco-alert ul { margin: 9px 0 0; padding-left: 21px; }
.aco-alert p { margin: 8px 0 0; }
.aco-preview { border-color: var(--aco-line); background: #fffdf8; color: var(--aco-muted); }
.aco-receipt .aco-success {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(22px, 4vw, 42px);
    color: var(--aco-ink);
}

.aco-receipt .aco-success:modal {
    position: fixed;
    width: min(490px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    margin: auto;
    overflow: auto;
    box-shadow: 0 18px 56px #29282440;
}

.aco-success::backdrop { background: #2726239c; }
.aco-success > p { margin: 9px 0 0; }
.aco-success .aco-actions { margin-top: 18px; }
.aco-receipt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--aco-line);
    border-radius: 8px;
    background: #fff;
    color: var(--aco-ink);
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.aco-receipt-close[hidden] { display: none; }
.aco-receipt-close:hover { background: var(--aco-paper); }
.aco-success-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #e8f2e9;
    color: #42664d;
    font-size: 23px;
}

.aco-reference {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 11px;
    padding: 9px 13px;
    border-radius: 8px;
    background: #f1eee7;
    overflow-wrap: anywhere;
}

.aco-reference strong { font-variant-numeric: tabular-nums; }
.aco-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 1080px) {
    .aco-stock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aco-line-head { display: none; }
    .aco-lines { display: grid; gap: 10px; }
    .aco-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        padding: 12px;
        border-top: 1px solid #e5e1d8;
        border-radius: 9px;
    }

    .aco-form[data-order-kind="ebatlama"] .aco-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aco-line:last-child { border-radius: 9px; }
    .aco-line-number {
        grid-column: 1 / -1;
        grid-row: 1;
        display: flex;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
        min-height: 44px;
        padding: 0 11px;
    }

    .aco-mobile-label { display: inline; }
    .aco-remove {
        grid-column: -2 / -1;
        grid-row: 1;
        justify-self: end;
        width: 44px;
        height: 44px;
    }

    .aco-line .aco-column-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    .aco-line :is(input[type="text"], select) { font-size: 16px; min-height: 45px; }
    .aco-line :is(.aco-line-material, .aco-line-note, .aco-line-checks, .aco-line-band) { grid-column: 1 / -1; }
    .aco-options { gap: 3px 9px; }
    .aco-options label { min-height: 42px; font-size: 13px; }
    .aco-operations .aco-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aco-line-checks legend { margin-bottom: 4px; }
}

@media (max-width: 700px) {
    .aco-hero { padding: 21px 0 23px; }
    .aco-hero-grid { grid-template-columns: 1fr; gap: 16px; }
    .aco-breadcrumb { margin-bottom: 15px; font-size: 12px; }
    .aco-main .aco-hero h1 { font-size: clamp(35px, 9vw, 54px); }
    .aco-hero h1 br { display: none; }
    .aco-hero h1 em::before { content: " "; }
    .aco-lead { margin: 12px 0; font-size: 15px; }
    .aco-hero-image { aspect-ratio: 2.55; max-height: 180px; border-radius: 10px; }
    .aco-content { padding-top: 16px; }
    .aco-tabs { max-width: none; margin-bottom: 14px; }
    .aco-tabs a { font-size: 13px; padding-inline: 4px; }
    .aco-card { padding: 15px; border-radius: 11px; }
    .aco-card-head { gap: 10px; margin-bottom: 15px; }
    .aco-step { flex-basis: 32px; height: 32px; }
    .aco-fields, .aco-stock { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .aco-field-wide { grid-column: 1 / -1; }
    .aco-stock { margin-bottom: 15px; }
    .aco-drawing, .aco-send-bar { flex-direction: column; align-items: stretch; }
    .aco-send-bar .aco-button { width: 100%; }
}

@media (max-width: 360px) {
    .aco-fields { grid-template-columns: 1fr; }
    .aco-stock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aco-options label { font-size: 12px; }
}
