/* GCL My Account CSS - from 3 templates - GCL-CLEANUP 2026-01-31
 * myaccount/orders.php L151-195
 * myaccount/view-order.php L611-1078
 * myaccount/partials/order-box.php L103-159
 */

/* === from orders.php === */
/* === GRID ZAMÓWIENIA === */
.gcl-orders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 767px) {
    .gcl-orders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gcl-orders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === PRZYCISK LOAD MORE === */
.gcl-orders-load-more-btn {
    padding: 12px 24px;
    background: #e3335a;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gcl-orders-load-more-btn:hover {
    background: #D10C63;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(241, 14, 116, 0.3);
}

.gcl-orders-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === from view-order.php === */
/* === LAYOUT 2 KOLUMNY: LEWA węższa (1fr), PRAWA szersza (2fr) === */
.gcl-order-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 1024px) {
    .gcl-order-details-grid {
        grid-template-columns: 1fr 2fr;
    }
}

/* === SEKCJE (LEWA KOLUMNA) === */
.gcl-order-section {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.gcl-order-section-title {
    font-weight: 700;
    font-size: 28px;
    line-height: 38px;
    color: #333333;
    margin: 0 0 20px 0;
}

.gcl-order-section-content {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #333333;
}

.gcl-order-section-separator {
    height: 1px;
    background: #E0E0E0;
    margin: 20px 0;
}

.gcl-shipping-method-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gcl-tracking-number {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gcl-address-section {
    margin-top: 0;
}

.gcl-address-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    margin: 0 0 12px 0;
}

.gcl-address-content {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #333333;
}

.gcl-order-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 24px;
}

.gcl-order-summary-separator {
    height: 1px;
    background: #E0E0E0;
    margin: 8px 0;
}

.gcl-order-summary-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
}

.gcl-order-back-link {
    margin-top: 24px;
}

.gcl-order-back-link a {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #333333;
    text-decoration: none;
}

.gcl-order-back-link a:hover {
    text-decoration: underline;
}

/* === PRODUKTY (PRAWA KOLUMNA) - Style z cart.php === */
.gcl-cart-item {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.gcl-project-name-top {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #555555;
    margin-bottom: 16px;
}

.gcl-item-wrapper {
    position: relative;
}

.gcl-item-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.gcl-item-image {
    width: 240px;
    height: 240px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.gcl-item-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gcl-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 0;
}

.gcl-item-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    margin-bottom: 4px;
}

.gcl-item-quantity-badge {
    font-weight: 400;
    color: #555555;
}

.gcl-item-details-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gcl-item-meta {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #555555;
    margin-bottom: 2px;
}

.gcl-meta-label {
    font-weight: 400;
}

.gcl-item-price {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #e3335a;
    margin-top: 8px;
}

.gcl-item-price-old {
    text-decoration: line-through;
    color: #555555;
    margin-right: 8px;
}

.gcl-item-price-new {
    color: #e3335a;
    font-weight: 700;
}

/* === SEPARATOR Z PLUSEM === */
.gcl-separator-with-plus {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 20px 0;
}

.gcl-separator-line {
    flex: 1;
    height: 1px;
    background: #E0E0E0;
}

.gcl-separator-plus {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #555555;
}

/* === OPCJE DODATKOWE (Desktop) === */
.gcl-item-options {
    margin-top: 0;
}

.gcl-options-layout {
    display: grid;
    grid-template-columns: auto auto;
    gap: 16px;
}

.gcl-option-main {
    display: flex;
    /* flex-direction: column; */
    gap: 12px;
    align-items: center;
}

.gcl-option-image-large {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.gcl-option-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gcl-option-info-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gcl-option-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
}

.gcl-option-desc {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #555555;
}

.gcl-option-price-main {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #e3335a;
    margin-top: 4px;
}

.gcl-options-right {
    display: flex;
    /* flex-direction: column; */
    gap: 12px;
    align-items: center;
    justify-content: left;
}

.gcl-option-small {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gcl-option-image-small {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.gcl-option-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gcl-option-info-small {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gcl-option-title-small {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #333333;
}

.gcl-option-desc-small {
    font-weight: 400;
    font-size: 11px;
    line-height: 14px;
    color: #555555;
}

.gcl-option-price-small {
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    color: #e3335a;
    margin-top: 4px;
}

/* === OPCJE DODATKOWE (Mobile) === */
.gcl-mobile-options {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gcl-mobile-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.gcl-mobile-option img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

.gcl-mobile-option-large img {
    /* width: 80px !important; */
    /* height: 80px !important; */
}

.gcl-mobile-option-info {
    flex: 1;
    min-width: 0;
}

.gcl-mobile-option-title {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #333333;
    margin-bottom: 2px;
}

.gcl-mobile-option-desc {
    font-weight: 400;
    font-size: 11px;
    line-height: 14px;
    color: #555555;
}

.gcl-mobile-option-price {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #e3335a;
    flex-shrink: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1023px) {
    .gcl-order-section-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .gcl-order-details-grid {
        gap: 16px;
    }
    
    .gcl-item-main {
        flex-direction: row;
        gap: 12px;
    }
    
    .gcl-item-image {
        width: 80px;
        height: 80px;
    }
    
    .gcl-item-name {
        font-size: 14px;
    }
    
    .gcl-item-meta {
        font-size: 12px;
    }
    
    .gcl-item-price {
        font-size: 16px;
    }
    
    .gcl-options-layout {
        grid-template-columns: 1fr;
    }
    
    .gcl-option-image-large {
        /* width: 100px; */
        /* max-width: 240px; */
    }
}

@media (max-width: 768px) {
    .gcl-desktop-only {
        display: none !important;
    }
    
    .gcl-mobile-only {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .gcl-desktop-only {
        /* display: block !important; */
        /* display: flex; */
        width: 100%;
    }
    
    .gcl-mobile-only {
        display: none !important;
    }
}

/* === from order-box.php === */
/* === BOX ZAMÓWIENIA === */
.gcl-order-box {
    /* Bez zaokrąglenia, bez animacji hover */
}

.gcl-order-box .order-image-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
}

.gcl-order-box .order-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Zaokrąglenie na obrazie (rounded-lg) */
}

/* === SZCZEGÓŁY ZAMÓWIENIA === */
.gcl-order-details {
    /* Border-left jako separator, flex flex-col gap-1.5 dla równych odstępów */
}

/* === PRZYCISK SZCZEGÓŁY === */
.gcl-order-details-btn {
    padding: 12px 24px;
    background: #e3335a;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    /* Bez animacji hover */
}

.gcl-order-details-btn:hover {
    background: #D10C63;
    color: #FFFFFF;
    text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .gcl-order-box {
        max-width: 100%;
    }
    
    .gcl-order-details-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

section.myaccount-view-order-section {
    padding: 0 1rem;
}