.checkout-steps {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 60px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    text-align: center;
}

.checkout-steps .step {
    position: relative;
    color: #888;
}

.checkout-steps .step.active {
    color: #000;
    font-weight: 700;
}

.checkout-steps .step .number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    margin-bottom: 5px;
}


.order-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-preview img {
    max-width: 80px;
    border: 1px solid #eee;
}

.product-details {
    text-align: right;
}

.product-price {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.view-order-toggle {
    background: none;
    border: none;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    text-decoration: underline;
}

.divider-line {
    border: none;
    border-top: 1px solid #000;
    margin: 30px 0 10px;
}

.shipping-title {
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    padding: 0 20px;
}


.checkout-steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px auto;
    max-width: 500px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 90px;
    position: relative;
}

.progress-step .circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #777;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-step .label {
    margin-top: 6px;
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
}

.progress-step.active .circle {
    background-color: black;
    color: white;
}

.progress-step.active .label {
    color: black;
    font-weight: bold;
}

.progress-line {
    height: 2px;
    background-color: #ccc;
    flex-grow: 1;
}


.shipping-address {
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

#addressForm {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 16px;
}

label {
    font-size: 14px;
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
}

input,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #000;
}

.why-number {
    font-size: 13px;
    margin-bottom: 20px;
    display: inline-block;
    color: #000;
    text-decoration: underline;
}

.continue-btn {
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: none;
    padding: 14px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
}

.continue-btn:hover {
    background-color: #222;
}


.delivery-step {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: 'Georgia', serif;
}

.delivery-step .shipping-title {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.delivery-box {
    border: 2px solid #888;
    padding: 16px;
    border-radius: 6px;
    position: relative;
    margin-bottom: 24px;
}

.delivery-box.selected {
    border-color: #000;
}

.delivery-box .checkmark {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: bold;
}

.delivery-type {
    font-weight: bold;
    margin-bottom: 8px;
}

.delivery-time {
    margin-bottom: 4px;
}

.delivery-cost {
    color: green;
    font-weight: bold;
    margin-bottom: 8px;
}

.delivery-desc {
    font-size: 14px;
    color: #555;
}

/* Кнопки - в стовпчик */
.delivery-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.delivery-buttons button {
    width: 100%;
    padding: 14px 0;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid black;
    cursor: pointer;
}

/* Стиль чорної кнопки */
.delivery-buttons .continue-btn {
    background-color: black;
    color: white;
    position: relative;
}

.delivery-buttons .continue-btn::after {
    content: '>';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Стиль білої кнопки */
.delivery-buttons .back-btn {
    background-color: white;
    color: black;
}

/* Стилі для блоку з доставкою */
.delivery-option {
    border: 2px solid #000;
    border-radius: 6px;
    padding: 16px;
    position: relative;
    margin-top: 16px;
}

.delivery-option h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.delivery-option p {
    margin: 6px 0;
    font-size: 14px;
}

.delivery-option .free {
    color: green;
    font-weight: bold;
}

.delivery-option .checkmark {
    position: absolute;
    top: -10px;
    right: -10px;
    background: black;
    color: white;
    border-radius: 50%;
    padding: 4px;
    font-size: 12px;

}



.step-payment {
    padding: 0 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.payment-method {
    border: 2px solid #000;
    border-radius: 6px;
    padding: 20px;
    position: relative;
}

.payment-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 15px;
}

.payment-form input,
.payment-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
}

.payment-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.payment-row label {
    flex: 1;
    margin: 0;
}

.payment-row select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 1.2;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    appearance: none;
}
.year-label {
    flex: 1;
    margin-top: 24px;
}

.cvv-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 14px;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
}


.payment-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.submit-order-btn {
    width: 100%;
    background: #000;
    color: white;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.lock-icon {
    margin-right: 8px;
}

.back-btn {
    width: 100%;
    background: white;
    border: 1px solid #000;
    color: black;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}



.expiry-group select {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 10px;
}

.expiry-group select.error {
    border-color: red;
}

.error-message {
    background-color: #fcebea;
    color: #d9534f;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.error-icon {
    font-weight: bold;
}


select.error {
    border: 1px solid red;
}

.error-message {
    color: #d8000c;
    background-color: #fce4e4;
    padding: 8px;
    margin-top: 8px;
    font-size: 14px;
    display: none;
}

.error-icon {
    font-weight: bold;
    font-size: 16px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-form .form-group {
    display: flex;
    flex-direction: column;
}

.payment-form label {
    margin-bottom: 6px;
    font-weight: 500;
}

.payment-row-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.payment-row-group > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-form input[type="text"],
.payment-form input[type="tel"],
.payment-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.checkbox-label {
    margin-top: 8px;
    font-size: 14px;
}
#expiryYear{
    margin-top: 22px;
}