/*
Theme Name: Astra Child
Description: Дочерняя тема для темы Astra
Author: GolFXTrader
Template: astra
Version: 0.1.0
*/

/* Общая кнопка скачивания всех фотографий */
a.zipdownload {
    display: inline-block;
    background: #2196f3;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 5px;
    text-decoration: none !important;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    font-weight: 100;
}

a.zipdownload:hover {
    background: #0b7dcc;
    color: #ffffff !important;
    text-decoration: none !important;
}

.buttondownloadzip {
    grid-column: 1 / -1;
    margin: 32px 0 0 0;
    text-align: center;
    width: 100%;
}

.boldtext {
    font-weight: 700;
}

.bgblock {
    background-color: #f0f0f0;
    padding: 15px 0;
    margin-bottom: 30px;
    border-left: 1px solid #ccc;
}

.bordblock {
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

.photo-card {
    padding-top: 20px;
}

.invoice-row {
    border-top: 1px solid;
    margin-top: 10px;
    border-bottom: 1px solid;
    margin-bottom: 20px;
    padding: 20px 0px;
}

.invoice-pdf {
    text-align: center;
}

.img-container {
    position: relative;
    display: inline-block;
}

.invoice-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.imgheigt img {
    height: 100px;
    margin-bottom: 30px;
}

/* VIN result page */
.vin-result-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 18px 34px;
}

/* Vehicle top card */
.vin-vehicle-card {
    display: grid;
    grid-template-columns: minmax(320px, 44%) 1fr;
    gap: 36px;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 28px rgba(15, 35, 60, 0.08);
    border: 1px solid rgba(20, 50, 80, 0.06);
}

.vin-main-photo-wrap {
    width: 100%;
}

.vin-main-photo {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
    border-radius: 10px;
}

.vin-info-wrap {
    width: 100%;
}

.vin-vehicle-title {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
    text-align: left;
}

.vin-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 34px;
}

.vin-details-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vin-detail-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: flex-start;
}

.vin-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eef6ff;
    color: #0b5798;
    line-height: 1;
}

.vin-info-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vin-detail-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.vin-detail-label {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.vin-detail-value {
    font-size: 15px;
    line-height: 1.35;
    color: #1f2937;
    word-break: break-word;
}

.vin-detail-value a {
    color: #0b84e5;
    font-weight: 600;
    text-decoration: none;
}

.vin-detail-value a:hover {
    text-decoration: underline;
}

/* Gallery card */
.vin-gallery-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 8px 28px rgba(15, 35, 60, 0.08);
    border: 1px solid rgba(20, 50, 80, 0.06);
}

/* Gallery */
.hid:not(:first-child) {
    display: none !important;
}

.item-childthema.vin-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin: 0;
}

.item-childthema .gallery {
    text-align: center;
    margin-bottom: 0;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
}

.item-childthema .gallery .df-c {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* Иконка группы */
.img_gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 170px;
    overflow: hidden;
    border-radius: 8px;
    background: #e5eef7;
}

.img_gallery img {
    display: block;
    width: 100%;
    height: 135px;
    object-fit: cover;
}

/* Надпись поверх иконки */
.liblePhoto {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 8px 6px;
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    line-height: 1.2;
}

/* Кнопка скачивания конкретной группы */
.group-download-wrap {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.group-download-wrap .zipdownload-gallery {
    display: inline-block;
    width: 100%;
    max-width: 170px;
    padding: 9px 9px;
    background: #2196f3;
    color: #ffffff !important;
    border-radius: 5px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 100;
    text-decoration: none !important;
    white-space: normal;
}

.group-download-wrap .zipdownload-gallery:hover {
    background: #0b7dcc;
    color: #ffffff !important;
    text-decoration: none !important;
}

/*--------------*/
.form-inline .form-group {
    display: flex;
    align-items: center;
}

.form-inline .form-group label {
    margin-bottom: 0;
    margin-right: 10px;
    white-space: nowrap;
}

.form-inline .form-group input {
    flex-grow: 1;
}

.pmargbtn p {
    margin-bottom: 0;
}

@media (max-width: 348px) {
    .price-container {
        display: flex;
        flex-direction: column;
    }

    .price-container span {
        margin-top: 5px;
    }
}

@media (max-width: 414px) {
    .pay-container {
        display: flex;
        flex-direction: column;
    }

    .pay-container span {
        margin-top: 5px;
    }
}

/***** /calc ********/
.city-delivery {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.form-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.city-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

.city-select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}

.city-details {
    margin-top: 20px;
}

.city-info {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-info strong {
    margin-right: 5px;
}

.icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    stroke: #007bff;
}

.icon-city {
    stroke: #28a745;
}

.icon-port {
    stroke: #ff9800;
}

/* Адаптивный дизайн */
@media (max-width: 1100px) {
    .item-childthema.vin-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vin-vehicle-card {
        gap: 26px;
    }

    .vin-vehicle-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .city-delivery {
        padding: 15px;
    }

    .form-title {
        font-size: 1.2em;
    }

    .city-select {
        font-size: 0.9em;
    }

    .city-info {
        font-size: 1em;
    }

    .icon {
        width: 16px;
        height: 16px;
    }

    .vin-result-page {
        padding: 16px 12px 24px;
    }

    .vin-vehicle-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .vin-main-photo {
        height: auto;
        max-height: 235px;
        object-fit: cover;
    }

    .vin-vehicle-title {
        font-size: 21px;
        text-align: center;
        margin-bottom: 14px;
    }

    .vin-details-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vin-details-column {
        gap: 12px;
    }

    .vin-details-column + .vin-details-column {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .vin-detail-item {
        grid-template-columns: 30px 1fr;
        gap: 10px;
    }

    .vin-info-icon {
        width: 30px;
        min-width: 30px;
        height: 30px;
    }

    .vin-info-icon svg {
        width: 17px;
        height: 17px;
    }

    .vin-detail-label,
    .vin-detail-value {
        font-size: 13px;
    }

    .vin-gallery-card {
        padding: 12px;
        border-radius: 12px;
    }

    .item-childthema.vin-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .img_gallery {
        max-width: none;
    }

    .img_gallery img {
        height: 120px;
    }

    .group-download-wrap .zipdownload-gallery {
        max-width: none;
        font-size: 12px;
        padding: 8px 6px;
    }

    .buttondownloadzip {
        margin-top: 20px;
    }

    a.zipdownload {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .vin-result-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .item-childthema.vin-gallery-grid {
        gap: 10px;
    }

    .img_gallery img {
        height: 105px;
    }

    .liblePhoto {
        font-size: 13px;
        padding: 6px 4px;
    }

    .group-download-wrap .zipdownload-gallery {
        font-size: 11px;
    }
}



/* Mobile header compacting */
@media (max-width: 768px) {
    .site-logo-img img,
    .custom-logo,
    .ast-site-identity img,
    .ast-site-identity .custom-logo {
        max-width: 200px !important;
        max-height: 110px !important;
        width: auto !important;
        height: auto !important;
    }

    .ast-site-identity,
    .site-branding {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .main-header-bar,
    .ast-primary-header-bar,
    .site-header-primary-section-left,
    .site-header-primary-section-right {
        min-height: auto !important;
    }
}

@media (max-width: 420px) {
    .site-logo-img img,
    .custom-logo,
    .ast-site-identity img,
    .ast-site-identity .custom-logo {
        max-width: 180px !important;
        max-height: 100px !important;
    }
}


/* Center the last gallery item when the number of groups is odd on mobile */
@media (max-width: 768px) {
    .item-childthema.vin-gallery-grid > .gallery:nth-last-child(2):nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 7px) !important;
        max-width: none !important;
    }
}

@media (max-width: 420px) {
    .item-childthema.vin-gallery-grid > .gallery:nth-last-child(2):nth-child(odd) {
        width: calc(50% - 5px) !important;
    }
}

/********************/
/*
.shipping-from-usa {
    background-color: #28415b;
    padding-bottom: 4rem;
    padding-top: 2.625rem;
    background-image: url(http://uslogistic-new/wp-content/uploads/2024/05/background-1-1024x426.webp);
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100% 60%;
}
*/
/* ===== USLOG Public Multilingual Foundation v0.9.8.0 RC ===== */
.uslog-lang-switcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px;
    border: 1px solid rgba(14, 38, 76, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(12, 36, 70, 0.16);
    backdrop-filter: blur(12px);
}

.uslog-lang-switcher .uslog-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: #244b86;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none !important;
    letter-spacing: 0.02em;
}

.uslog-lang-switcher .uslog-lang-link:hover,
.uslog-lang-switcher .uslog-lang-link.is-active {
    background: #244b86;
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .uslog-lang-switcher {
        right: 12px;
        bottom: 12px;
        padding: 6px;
        gap: 4px;
    }

    .uslog-lang-switcher .uslog-lang-link {
        min-width: 34px;
        height: 31px;
        padding: 0 8px;
        font-size: 12px;
    }
}
