.affiliates-page {
    display: flex;
    min-height: 100vh;
}

.affiliates-page-sidebar {
    width: 250px;
}

.affiliates-page-sidebar-nav {
    padding: 0;
    margin: 0;
    background-color: #fff;
}

.affiliates-page-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.affiliates-page-sidebar-item {
    border-bottom: 1px solid #eee;
}

.affiliates-page-sidebar-link {
    display: block;
    padding: 12px 15px 12px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.3s;
    cursor: pointer;
}

.affiliates-page-sidebar-link:hover {
    background: #f0f0f0;
}

.affiliates-page-sidebar-link-active {
    background: #EAEAEA;
    border-right: 4px solid #7A4DAD;
    padding-left: 15px;
    cursor: default;
}

.affiliates-page-content {
    flex: 1;
    padding-left: 20px;
    background: #f5f5f5;
}

.affiliates-page-content-section {
    display: none;
}

.affiliates-page-content-section-active {
    display: block;
}

.store {
    display: flex;
    flex-direction: row;
    background: #FFFFFF;
    border: 1px solid #EFEFEF;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    padding: 20px;
    position: relative;
}

.store-img {
    flex: 0 0 auto;
    width: 215px;
    height: 136px;
    overflow: hidden;
    margin-right: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.store-data-name {
    font-size: 15px;
    font-weight: bold;
    color: #323232;
    margin-bottom: 6px;
    width: fit-content;
}

.store-data-description {
    font-size: 14px;
    color: #7C7B7E;
    margin-bottom: 14px;
    width: fit-content;
}

.store-data-description-hidden {
    margin-bottom: 14px;
}

.store-data-phone {
    font-size: 14px;
    color: #323232;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    width: fit-content;
}

.store-data-phone::before {
    content: url(/local/img/black-phone.svg);
    margin-right: 2px;
    display: inline-block;
    align-self: center;
    height: 16px;
    width: 16px;
}

.store-data-phone-hidden{
    margin-bottom: 43px;
}

.store-data-schedule {
    border: 1px solid #EFEFEF;
    border-radius: 2px;
    overflow: hidden;
}

.store-data-schedule--mt18 {
    margin-top: 18px;
}

.schedule-button {
    position: relative;
    background: #EFE9F5;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.schedule-button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url(/local/img/arrow-down.svg) no-repeat center center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.schedule-button.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.schedule-today-columns {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.schedule-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #FFFFFF;
}

.schedule-full-columns {
    width: 100%;
}

.schedule-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #EFEFEF;
}

.schedule-row:last-child {
    border-bottom: none;
}
.schedule-today-work,
.schedule-break,
.schedule-full-time,
.schedule-full-break {
    width: 45%;
    text-align: left;
    padding: 0 10px;
    box-sizing: border-box;
}

.highlight {
    background: #EFE9F5;
    border-radius: 2px;
    padding: 10px 0;
    box-sizing: border-box;
    width: 100%;
}

.store-data-maps {
    position: absolute;
    top: 28px;
    right: 20px;
}

.store-data-maps a {
    font-size: 16px;
    color: #FFFFFF;
    text-decoration: none;
    background: #7A4DAD;
    padding: 8px 16px;
    border-radius: 2px;
    transition: background 0.3s;
}

.store-data-maps a:hover {
    background: #693C95;
}

@media (max-width: 600px) {
    .affiliates-page {
        flex-direction: column;
        margin-top: -40px;
    }

    .affiliates-page-sidebar {
        width: 100%;
        padding-bottom: 18px;
        order: -1;
    }

    .affiliates-page-sidebar-link {
        font-size: 20px;
    }

    .affiliates-page-content {
        padding-left: 0;
    }

    .store {
        flex-direction: column;
        align-items: stretch;
    }

    .store-img {
        display: none;
    }


    .store-data {
        width: 100%;
    }

    .store-data-name {
        font-size: 17px;
    }

    .store-data-name,
    .store-data-description,
    .store-data-phone,
    .store-data-schedule {
        width: 100%;
        padding: 0;
    }

    .schedule-button::after {
        right: 5px;
        width: 8px;
        height: 8px;
    }

    .schedule-today-work,
    .schedule-break {
        width: 50%;
        font-size: 12px;
    }

    .schedule-today-work,
    .schedule-full-time {
        padding: 0 0 0 5px;
    }

    .schedule-break,
    .schedule-full-break {
        padding: 0 5px 0 0;
    }

    .schedule-full-time,
    .schedule-full-break {
        width: 50%;
        font-size: 12px;
    }

    .store-data-maps {
        display: none;
    }

    /*.store-data-maps {
        position: absolute;
        top: 80px;
        right: 20px;
    }

    .store-data-maps a {
        font-size: 14px;
        padding: 8px 8px;
        border-radius: 2px;
        transition: background 0.3s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }*/
}
