/* DHL kurumsal gönderim — waybill / split-panel */
.dhl-shipping-section {
    --dhl-yellow: #ffcc00;
    --dhl-red: #d40511;
    --dhl-ink: #121212;
    --dhl-paper: #f4f1ea;
}

.dhl-card {
    display: grid;
    grid-template-columns: minmax(210px, 240px) 1fr;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 16px;
    box-shadow: 0 18px 50px rgba(18, 18, 18, 0.12);
    border: 1px solid #e5e0d6;
}

.dhl-rail {
    background: var(--dhl-yellow);
    color: var(--dhl-ink);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    isolation: isolate;
}

.dhl-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            115deg,
            transparent 0 18px,
            rgba(0, 0, 0, 0.05) 18px 20px
        );
    pointer-events: none;
    z-index: -1;
}

.dhl-rail__top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dhl-rail__logo {
    font-family: "Arial Black", Arial, Impact, sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 2.35rem;
    color: var(--dhl-red);
    letter-spacing: -0.08em;
    line-height: 0.9;
    transform: skewX(-10deg);
    user-select: none;
}

.dhl-rail__product {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.85;
}

.dhl-rail__stamp {
    margin: 0;
    display: inline-flex;
    align-self: flex-start;
    border: 2px solid var(--dhl-red);
    color: var(--dhl-red);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 10px;
    transform: rotate(-6deg);
    background: rgba(255, 255, 255, 0.35);
}

.dhl-rail__route {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: end;
    padding-top: 16px;
    border-top: 1px dashed rgba(0, 0, 0, 0.28);
}

.dhl-rail__kicker {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 2px;
}

.dhl-rail__route strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.dhl-rail__arrow {
    font-size: 1.1rem;
    font-weight: 800;
    padding-bottom: 2px;
}

.dhl-rail__foot {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dhl-main {
    padding: 28px 28px 24px;
    background:
        linear-gradient(180deg, #fff 0 72%, var(--dhl-paper) 72%);
}

.dhl-card h2.dhl-main__title {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    font-weight: 800;
    color: var(--dhl-ink);
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    line-height: 1.2;
    border: 0;
    padding: 0;
    background: none;
}

.dhl-main__lead {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 68ch;
    margin: 0 0 22px;
}

.dhl-panels {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    margin-bottom: 22px;
}

.dhl-waybill {
    background: #161616;
    color: #fff;
    padding: 18px 18px 16px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.dhl-waybill__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dhl-yellow);
    margin-bottom: 10px;
}

.dhl-waybill__code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dhl-waybill__code {
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    user-select: all;
}

.dhl-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dhl-yellow);
    color: #111;
    border: 0;
    border-radius: 0;
    padding: 9px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dhl-copy:hover {
    background: #fff;
    color: #111;
}

.dhl-copy:focus-visible {
    outline: 3px solid var(--dhl-yellow);
    outline-offset: 2px;
}

.dhl-copy.is-copied {
    background: #1b7a3a;
    color: #fff;
}

.dhl-waybill__bars {
    height: 26px;
    margin: 14px 0 10px;
    background: repeating-linear-gradient(
        90deg,
        #ffcc00 0 2px,
        transparent 2px 5px,
        #ffcc00 5px 6px,
        transparent 6px 10px,
        #ffcc00 10px 13px,
        transparent 13px 15px,
        #ffcc00 15px 16px,
        transparent 16px 21px
    );
    opacity: 0.9;
}

.dhl-waybill__hint {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.45;
}

.dhl-dest {
    background: var(--dhl-paper);
    border-left: 4px solid var(--dhl-red);
    padding: 18px 18px 16px;
}

.dhl-dest__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dhl-red);
    margin-bottom: 8px;
}

.dhl-dest__name {
    margin: 0 0 10px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--dhl-ink);
}

.dhl-dest__addr {
    margin: 0;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    display: flex;
    gap: 8px;
}

.dhl-dest__addr i {
    color: var(--dhl-red);
    margin-top: 2px;
    flex-shrink: 0;
}

.dhl-line {
    list-style: none;
    margin: 0 0 22px;
    padding: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
}

.dhl-line::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #ddd6c8;
}

.dhl-line__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.dhl-line__num {
    width: 28px;
    height: 28px;
    background: var(--dhl-red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhl-line__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dhl-ink);
}

.dhl-line__text {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    font-weight: 500;
}

.dhl-main__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.dhl-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 0;
    padding: 12px 18px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.dhl-wa i {
    color: #25d366;
}

.dhl-wa:hover {
    background: #25d366;
    color: #111 !important;
}

.dhl-wa:hover i {
    color: #111;
}

.dhl-main__note {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    max-width: 34ch;
    text-align: right;
}

@media (max-width: 991.98px) {
    .dhl-card {
        grid-template-columns: 1fr;
    }

    .dhl-rail {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 20px;
    }

    .dhl-rail__route {
        margin-top: 0;
        border-top: 0;
        padding-top: 0;
        min-width: 220px;
    }

    .dhl-rail__stamp {
        transform: none;
    }

    .dhl-rail__foot {
        width: 100%;
    }

    .dhl-main {
        background: #fff;
        padding: 22px 18px 18px;
    }

    .dhl-panels,
    .dhl-line {
        grid-template-columns: 1fr;
    }

    .dhl-line::before {
        display: none;
    }

    .dhl-line__item {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        padding-bottom: 12px;
        border-bottom: 1px dashed #ddd6c8;
    }

    .dhl-line__text {
        flex-basis: 100%;
        padding-left: 40px;
    }

    .dhl-main__note {
        text-align: left;
        max-width: none;
    }

    .dhl-wa {
        width: 100%;
        justify-content: center;
    }
}
