.woocommerce-order-received .page-header,
.woocommerce-order-received .page-title,
.woocommerce-order-received .entry-title,
.woocommerce-order-received .elementor-heading-title,
.woocommerce-order-received .site-main > header:first-child {
    display: none !important;
}

.woocommerce-order-received .site-main {
    max-width: 1240px !important;
}

.borbila-thankyou {
    --borbila-thankyou-green: #008445;
    --borbila-thankyou-green-dark: #056738;
    --borbila-thankyou-ink: #121212;
    --borbila-thankyou-muted: #67727d;
    --borbila-thankyou-border: #dfe9e3;
    --borbila-thankyou-soft: #f6fbf8;
    --borbila-thankyou-shadow: 0 24px 60px rgba(10, 26, 18, 0.08);
    padding: 28px 0 56px;
}

.borbila-thankyou__shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--borbila-thankyou-border);
    border-radius: 28px;
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(0, 132, 69, 0.11), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
    box-shadow: var(--borbila-thankyou-shadow);
}

.borbila-thankyou__shell--failed {
    border-color: #f3c8c8;
    background:
        radial-gradient(circle at top right, rgba(190, 24, 24, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.borbila-thankyou__hero {
    margin-bottom: 28px;
}

.borbila-thankyou__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(0, 132, 69, 0.1);
    color: var(--borbila-thankyou-green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.borbila-thankyou__title {
    margin: 16px 0 10px;
    color: var(--borbila-thankyou-ink);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
}

.borbila-thankyou__lead {
    max-width: 760px;
    margin: 0;
    color: var(--borbila-thankyou-muted);
    font-size: 16px;
    line-height: 1.7;
}

.borbila-thankyou__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.borbila-thankyou__stat,
.borbila-thankyou__card {
    border: 1px solid var(--borbila-thankyou-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(12, 29, 20, 0.05);
}

.borbila-thankyou__stat {
    padding: 20px 22px;
}

.borbila-thankyou__stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--borbila-thankyou-muted);
    font-size: 13px;
    line-height: 1.4;
}

.borbila-thankyou__stat-value {
    display: block;
    color: var(--borbila-thankyou-ink);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.borbila-thankyou__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
}

.borbila-thankyou__card {
    padding: 24px;
}

.borbila-thankyou__card-title {
    margin: 0 0 18px;
    color: var(--borbila-thankyou-ink);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.borbila-thankyou__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.borbila-thankyou__list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2ee;
    color: var(--borbila-thankyou-muted);
    font-size: 15px;
    line-height: 1.5;
}

.borbila-thankyou__list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.borbila-thankyou__list strong {
    color: var(--borbila-thankyou-ink);
    font-weight: 700;
    text-align: right;
}

.borbila-thankyou__details-name {
    margin: 0 0 12px;
    color: var(--borbila-thankyou-ink);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
}

.borbila-thankyou__details-address {
    color: var(--borbila-thankyou-muted);
    font-size: 15px;
    line-height: 1.8;
}

.borbila-thankyou__details-address p {
    margin: 0;
}

.borbila-thankyou__shell--classic {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.borbila-thankyou__shell--classic .borbila-thankyou__eyebrow,
.borbila-thankyou__shell--classic .borbila-thankyou__grid {
    display: none;
}

.borbila-thankyou__shell--classic .borbila-thankyou__header {
    margin-bottom: 28px;
    text-align: center;
}

.borbila-thankyou__shell--classic .borbila-thankyou__title {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 40px);
    color: #111111;
}

.borbila-thankyou__shell--classic .borbila-thankyou__lead {
    max-width: 920px;
    margin: 0 auto;
    padding: 15px 18px;
    border: 1px dashed rgba(0, 132, 69, 0.45);
    border-radius: 12px;
    background: #f2fff7;
    color: var(--borbila-thankyou-green-dark);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

.borbila-thankyou__shell--classic .borbila-thankyou__stats {
    margin-bottom: 26px;
}

.borbila-thankyou__shell--classic .borbila-thankyou__stat {
    padding: 22px 18px;
    border-radius: 16px;
    box-shadow: none;
}

.borbila-thankyou__shell--classic .borbila-thankyou__stat-label {
    color: #9aa3ac;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.borbila-thankyou__shell--classic .borbila-thankyou__stat-value {
    font-size: 24px;
    color: var(--borbila-thankyou-green-dark);
}

.borbila-thankyou__payment-note {
    margin: 8px 0 28px;
    color: #5b6670;
}

.borbila-thankyou__payment-note:empty {
    display: none;
}

.borbila-thankyou__details-wrap .woocommerce-order-details,
.borbila-thankyou__details-wrap .woocommerce-customer-details {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.borbila-thankyou__details-wrap .woocommerce-order-details__title,
.borbila-thankyou__details-wrap .woocommerce-column__title {
    margin: 0 0 22px;
    text-align: center;
    color: var(--borbila-thankyou-green-dark);
    font-size: 20px;
    font-weight: 800;
}

.borbila-thankyou__details-wrap .shop_table {
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    background: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
}

.borbila-thankyou__details-wrap .shop_table thead th {
    padding: 18px 20px;
    background: #f7f8fa;
    color: #171717;
    font-size: 15px;
}

.borbila-thankyou__details-wrap .shop_table tbody td,
.borbila-thankyou__details-wrap .shop_table tfoot th,
.borbila-thankyou__details-wrap .shop_table tfoot td {
    padding: 16px 20px;
    border-top: 1px solid #eef1f4;
    font-size: 15px;
}

.borbila-thankyou__details-wrap .shop_table tfoot tr:last-child th,
.borbila-thankyou__details-wrap .shop_table tfoot tr:last-child td {
    background: #f2fff7;
    color: var(--borbila-thankyou-green-dark);
    font-weight: 800;
}

.borbila-thankyou__details-wrap .woocommerce-customer-details .woocommerce-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.borbila-thankyou__details-wrap .woocommerce-column--billing-address,
.borbila-thankyou__details-wrap .woocommerce-column--shipping-address {
    border: 1px solid #edf0f3;
    border-radius: 16px;
    padding: 24px;
    background: #ffffff;
}

.borbila-thankyou__details-wrap .woocommerce-customer-details address {
    color: #4f5a65;
    line-height: 1.9;
}

.borbila-thankyou__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
    margin-top: 28px;
}

.borbila-thankyou__button {
    display: inline-flex;
    flex: 1 1 220px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 220px;
    padding: 0 24px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.borbila-thankyou__button:hover {
    transform: translateY(-1px);
}

.borbila-thankyou__button--primary {
    background: linear-gradient(135deg, var(--borbila-thankyou-green), #0aa75a);
    color: #ffffff !important;
    box-shadow: 0 16px 36px rgba(0, 132, 69, 0.22);
}

.borbila-thankyou__button--primary:hover {
    color: #ffffff !important;
    box-shadow: 0 18px 40px rgba(0, 132, 69, 0.27);
}

.borbila-thankyou__actions .borbila-thankyou__button--primary,
.borbila-thankyou__actions .borbila-thankyou__button--primary:visited,
.borbila-thankyou__actions .borbila-thankyou__button--primary:hover,
.borbila-thankyou__actions .borbila-thankyou__button--primary:focus {
    color: #ffffff !important;
}

.borbila-thankyou__button--secondary {
    border: 1px solid var(--borbila-thankyou-border);
    background: #ffffff;
    color: var(--borbila-thankyou-ink);
}

.borbila-thankyou__button--secondary:hover {
    color: var(--borbila-thankyou-green-dark);
    border-color: rgba(0, 132, 69, 0.35);
}

.woocommerce-order-received .woocommerce ul.order_details,
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-order-received .woocommerce-notice {
    margin-top: 22px;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    border: 1px solid var(--borbila-thankyou-border);
    border-radius: 22px;
    padding: 22px;
    background: #ffffff;
}

.woocommerce-order-received .woocommerce-table--order-details,
.woocommerce-order-received .woocommerce-customer-details address {
    margin-bottom: 0;
}

.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-customer-details {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-columns--addresses::before,
.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-columns--addresses::after {
    display: none;
}

.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-columns--addresses .col-1,
.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-columns--addresses .col-2,
.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-column--billing-address,
.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-column--shipping-address {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    min-width: 0;
}

.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-column--billing-address,
.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-column--shipping-address {
    min-height: 100%;
}

.woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-customer-details address {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-style: normal;
}

@media (max-width: 1024px) {
    .borbila-thankyou__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .borbila-thankyou__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .borbila-thankyou__details-wrap .woocommerce-customer-details .woocommerce-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .woocommerce-order-received .borbila-thankyou__details-wrap .woocommerce-columns--addresses {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .borbila-thankyou {
        padding: 16px 0 36px;
    }

    .borbila-thankyou__shell {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .borbila-thankyou__stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .borbila-thankyou__card,
    .borbila-thankyou__stat {
        border-radius: 18px;
    }

    .borbila-thankyou__card {
        padding: 18px 16px;
    }

    .borbila-thankyou__stat {
        padding: 16px;
    }

    .borbila-thankyou__list li {
        flex-direction: column;
        gap: 6px;
    }

    .borbila-thankyou__list strong {
        text-align: left;
    }

    .borbila-thankyou__actions {
        flex-direction: column;
    }

    .borbila-thankyou__button {
        width: 100%;
    }
}
