* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #ffffff;
    color: #1d1d1d;
}

button,
a {
    font-family: inherit;
}


/* =========================================
   PAGE
========================================= */

.page {
    width: 100%;
    min-height: 1956px;
    background: #ffffff;
}

.main-container {
    position: relative;

    width: calc(100% - 32px);
    max-width: 1408px;

    min-height: 1735px;

    margin: 16px auto 0;

    background: #f9fafc;

    border-radius: 40px;

    padding-top: 21px;
    padding-bottom: 50px;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: relative;

    width: calc(100% - 58px);
    max-width: 1382px;

    min-height: 53px;
    height: 53px;

    margin: 0 auto;

    background: #ffffff;

    border-radius: 50px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 28px 0 98px;
}

.logo-link {
    display: flex;

    align-items: center;

    text-decoration: none;

    flex-shrink: 1;

    min-width: 0;
}

.logo {
    width: 200px;
    height: 49px;

    max-width: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================
   HEADER BUTTONS
========================================= */

.header-icons {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}

.header-icon,
.header-menu {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================
   SEARCH BUTTON
========================================= */

.search-button {
    width: 22px;
    height: 22px;
}

.search-icon {
    position: relative;

    display: block;

    width: 15px;
    height: 15px;

    border: 1.8px solid #1d1d1d;

    border-radius: 50%;
}

.search-icon::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 1.8px;

    background: #1d1d1d;

    right: -5px;
    bottom: -2px;

    transform: rotate(45deg);

    transform-origin: left center;
}


/* =========================================
   MENU BUTTON
========================================= */

.header-menu {
    width: 22px;
    height: 22px;

    flex-direction: column;

    gap: 4px;
}

.header-menu span {
    display: block;

    width: 20px;
    height: 2px;

    background: #1d1d1d;

    border-radius: 2px;
}


/* =========================================
   CHECKOUT PROGRESS
========================================= */

.checkout-progress {
    width: 101px;

    margin: 44px auto 44px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.progress-step {
    display: flex;

    align-items: center;

    gap: 10px;
}

.step-number {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border-radius: 5px;

    background: #2f52d8;

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: "Inter", sans-serif;

    font-size: 16px;
}

.step-label {
    font-family: "Inter", sans-serif;

    font-size: 16px;

    color: #1d1d1d;
}


/* =========================================
   DELIVERY CARD
========================================= */

.delivery-card {
    width: min(768px, calc(100% - 40px));

    min-height: 264px;

    margin: 0 auto;

    padding: 26px 24px;

    background: #ffffff;

    box-shadow: 4px 4px 4px rgba(146, 136, 136, 0.29);

    border-radius: 20px;
}

.delivery-card h2 {
    margin: 0 0 14px 9px;

    font-size: 20px;

    font-weight: 500;

    line-height: 26px;
}

.delivery-option {
    width: 100%;

    min-height: 159px;

    padding: 18px 15px;

    background: #f9fafc;

    border: 1px solid #000000;

    border-radius: 20px;
}

.delivery-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.delivery-method {
    display: flex;

    align-items: center;

    gap: 14px;

    font-size: 16px;

    font-weight: 500;

    min-width: 0;
}

.delivery-dot {
    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: #1d1d1d;

    flex-shrink: 0;
}

.delivery-price {
    font-size: 16px;

    font-weight: 500;

    flex-shrink: 0;
}

.arrival-date {
    display: inline-block;

    margin: 4px 0 8px 26px;

    padding: 3px 13px;

    background: #ccefff;

    border-radius: 5px;

    font-size: 12px;

    line-height: 16px;
}

.delivery-description {
    margin: 2px 10px 0 26px;

    max-width: 626px;

    font-size: 16px;

    line-height: 21px;

    font-weight: 400;
}


/* =========================================
   ORDER CARD
========================================= */

.order-card {
    position: relative;

    width: min(514px, calc(100% - 40px));

    min-height: 693px;

    margin: 43px auto 0;

    padding: 18px 22px;

    background: #ffffff;

    box-shadow: 4px 4px 4px rgba(146, 136, 136, 0.29);

    border-radius: 20px;
}

.order-card h1 {
    margin: 0;

    font-size: 24px;

    line-height: 31px;

    font-weight: 500;
}


/* =========================================
   PRODUCT
========================================= */

.product-section {
    display: flex;

    gap: 18px;

    margin-top: 14px;
}

.product-image {
    width: 242px;
    height: 181px;

    border-radius: 10px;

    overflow: hidden;

    background: #eeeeee;

    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.product-details {
    display: flex;

    flex-direction: column;

    gap: 11px;

    padding-top: 6px;

    min-width: 0;

    font-size: 16px;

    line-height: 21px;
}

.product-name {
    font-weight: 500;

    overflow-wrap: anywhere;
}


/* =========================================
   PRICE BREAKDOWN
========================================= */

.price-breakdown {
    margin-top: 55px;

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.price-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    font-size: 16px;

    line-height: 21px;
}

.price-row:first-child {
    font-weight: 500;
}

.protected {
    color: #50f93e;
}

.tax {
    font-size: 14px;
}


/* =========================================
   BUYER PROTECTION
========================================= */

.protection-box {
    margin-top: 28px;

    min-height: 80px;

    padding: 10px 18px;

    background: #ebf9ff;

    border-radius: 10px;

    display: flex;

    align-items: center;

    gap: 12px;
}

.protection-icon {
    width: 22px;
    height: 22px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 15px;

    font-weight: 500;
}

.protection-box p {
    margin: 0;

    font-size: 14px;

    line-height: 18px;
}


/* =========================================
   TOTAL
========================================= */

.total-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 22px;

    padding: 0;

    font-size: 20px;

    line-height: 26px;

    font-weight: 500;
}


/* =========================================
   CONTINUE TO PAY
========================================= */

.continue-button {
    display: block;

    width: 470px;
    max-width: 100%;

    height: 38px;

    margin: 32px auto 0;

    padding: 0;

    border: 0;

    border-radius: 5px;

    background: #3150de;

    color: #ffffff;

    cursor: pointer;

    font-family: "DM Sans", sans-serif;

    font-size: 16px;

    font-weight: 500;

    line-height: 21px;

    transition:
        opacity 0.2s ease,
        transform 0.1s ease;
}

.continue-button:hover {
    opacity: 0.9;
}

.continue-button:active {
    transform: scale(0.99);
}


/* =========================================
   INFORMATION SECTION
========================================= */

.information-section {
    width: min(482px, calc(100% - 40px));

    margin: 62px auto 0;
}

.information-block {
    margin-bottom: 44px;
}

.information-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;

    font-size: 16px;

    line-height: 21px;

    font-weight: 500;
}

.heading-line {
    width: 30px;

    height: 0;

    flex-shrink: 0;

    border-top: 3px solid #1d1d1d;

    transform: rotate(-1.15deg);
}

.information-block p {
    margin: 0 0 18px;

    font-size: 14px;

    line-height: 18px;

    font-weight: 500;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    width: 100%;

    min-height: 181px;
    height: 181px;

    margin-top: 0;

    background: #473f3f;

    color: #ffffff;
}

.footer-inner {
    width: calc(100% - 122px);

    max-width: 1363px;

    height: 100%;

    margin: 0 auto;

    padding-top: 127px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.copyright {
    font-size: 12px;

    line-height: 16px;

    font-weight: 400;
}

.footer-links {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 50px;

    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    line-height: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* =========================================
   TABLET / SMALL LAPTOP
========================================= */

@media (max-width: 900px) {

    .page {
        min-height: auto;
    }

    .main-container {
        width: calc(100% - 20px);

        margin-top: 10px;

        border-radius: 30px;

        padding-top: 16px;
        padding-bottom: 50px;
    }

    .header {
        width: calc(100% - 24px);

        padding: 0 24px;

        height: 53px;
    }

    .logo {
        width: 170px;
        height: 45px;
    }

    .checkout-progress {
        margin-top: 35px;
        margin-bottom: 35px;
    }

    .delivery-card {
        width: calc(100% - 40px);

        padding: 22px 18px;
    }

    .order-card {
        width: calc(100% - 40px);

        padding: 18px;
    }

    .product-section {
        gap: 16px;
    }

    .product-image {
        width: 45%;
        height: auto;

        min-height: 170px;
    }

    .product-details {
        flex: 1;
    }

    .price-breakdown {
        margin-top: 35px;
    }

    .continue-button {
        width: 100%;
    }

    .information-section {
        width: calc(100% - 50px);
    }

    .footer {
        height: auto;
        min-height: 181px;
    }

    .footer-inner {
        width: calc(100% - 60px);

        padding: 50px 0;

        height: auto;

        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        gap: 30px;
    }

    .footer-links {
        justify-content: flex-start;

        gap: 20px 35px;
    }
}


/* =========================================
   PHONE
========================================= */

@media (max-width: 600px) {

    .page {
        min-height: auto;
    }

    .main-container {
        width: calc(100% - 12px);

        margin-top: 6px;

        border-radius: 20px;

        padding-top: 10px;
        padding-bottom: 35px;
    }


    /* HEADER */

    .header {
        width: calc(100% - 16px);

        height: 50px;

        padding: 0 16px;

        border-radius: 30px;
    }

    .logo {
        width: 135px;
        height: 43px;
    }

    .header-icons {
        gap: 12px;
    }

    .search-button {
        width: 20px;
        height: 20px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
    }

    .header-menu {
        width: 20px;
        height: 20px;
    }

    .header-menu span {
        width: 18px;
    }


    /* CHECKOUT PROGRESS */

    .checkout-progress {
        width: auto;

        margin: 28px auto 28px;
    }

    .step-number {
        width: 23px;
        height: 23px;

        font-size: 15px;
    }

    .step-label {
        font-size: 15px;
    }


    /* DELIVERY */

    .delivery-card {
        width: calc(100% - 24px);

        min-height: auto;

        padding: 20px 14px;

        border-radius: 16px;
    }

    .delivery-card h2 {
        margin-left: 4px;

        font-size: 19px;

        line-height: 25px;
    }

    .delivery-option {
        min-height: auto;

        padding: 16px 12px;

        border-radius: 16px;
    }

    .delivery-top {
        align-items: flex-start;

        gap: 10px;
    }

    .delivery-method {
        gap: 10px;

        font-size: 15px;

        line-height: 20px;
    }

    .delivery-dot {
        width: 13px;
        height: 13px;
    }

    .delivery-price {
        font-size: 15px;
    }

    .arrival-date {
        margin-left: 23px;

        font-size: 11px;
    }

    .delivery-description {
        margin-left: 0;
        margin-right: 0;

        font-size: 14px;

        line-height: 20px;
    }


    /* ORDER */

    .order-card {
        width: calc(100% - 24px);

        min-height: auto;

        margin-top: 28px;

        padding: 16px 14px;

        border-radius: 16px;
    }

    .order-card h1 {
        font-size: 22px;

        line-height: 29px;
    }


    /* PRODUCT */

    .product-section {
        flex-direction: column;

        gap: 14px;
    }

    .product-image {
        width: 100%;

        height: 210px;

        min-height: 0;
    }

    .product-details {
        gap: 8px;

        padding-top: 0;

        font-size: 15px;

        line-height: 20px;
    }


    /* PRICE */

    .price-breakdown {
        margin-top: 30px;

        gap: 13px;
    }

    .price-row {
        font-size: 15px;

        line-height: 20px;

        gap: 15px;
    }

    .tax {
        font-size: 13px;
    }


    /* BUYER PROTECTION */

    .protection-box {
        margin-top: 24px;

        min-height: auto;

        padding: 12px 14px;

        align-items: flex-start;

        gap: 10px;
    }

    .protection-icon {
        width: 20px;
        height: 20px;

        font-size: 14px;
    }

    .protection-box p {
        font-size: 13px;

        line-height: 18px;
    }


    /* TOTAL */

    .total-row {
        margin-top: 20px;

        font-size: 19px;

        line-height: 25px;
    }


    /* BUTTON */

    .continue-button {
        width: 100%;

        height: 42px;

        margin-top: 28px;

        font-size: 15px;
    }


    /* INFORMATION */

    .information-section {
        width: calc(100% - 28px);

        margin-top: 45px;
    }

    .information-block {
        margin-bottom: 35px;
    }

    .information-heading {
        margin-bottom: 18px;

        font-size: 15px;

        line-height: 20px;
    }

    .information-block p {
        font-size: 13px;

        line-height: 18px;
    }


    /* FOOTER */

    .footer {
        min-height: auto;
    }

    .footer-inner {
        width: calc(100% - 40px);

        padding: 35px 0;

        gap: 25px;
    }

    .footer-links {
        flex-direction: column;

        align-items: flex-start;

        gap: 14px;
    }

    .copyright,
    .footer-links a {
        font-size: 12px;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .main-container {
        width: calc(100% - 8px);

        border-radius: 16px;
    }

    .header {
        width: calc(100% - 10px);

        padding: 0 12px;
    }

    .logo {
        width: 120px;
    }

    .delivery-card,
    .order-card {
        width: calc(100% - 16px);
    }

    .delivery-option {
        padding: 14px 10px;
    }

    .delivery-method,
    .delivery-price {
        font-size: 14px;
    }

    .product-image {
        height: 180px;
    }

    .continue-button {
        height: 40px;
    }
}