* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page-wrapper .page-body-wrapper {
    background-color: #f5f5f2 !important;
}

.container {
    max-width: 1149px;
    margin: 0 auto;
    padding: 32px 16px 160px;
}

.cart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
}

.cart-section {
    width: 100%;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    color: #000;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-count {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Cart Items Section */
.cart-items-card {
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.04);
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 0;
    /*border-bottom: 1px solid #eceef0;*/
}

.cart-item:last-child {
    border-bottom: none;
}

.item-logo {
    flex-shrink: 0;
}

.item-details {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}
.item-info-wrapper{
    display: flex;
    flex-direction: column;
}

.plan-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}
.quantity-info {
    font-size: 14px;
    color: #6b7280;
}

.item-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin-bottom: 4px;
}

.item-company {
    font-size: 16px;
    line-height: 28px;
    color: #294f9b;
    margin-bottom: 8px;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.separator {
    color: #cccccc;
}

.item-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: #294f9b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: #0b2156;
    background-color: rgba(41, 79, 155, 0.1);
    text-decoration: none;
}

.remove-btn {
    color: #db2e24;
}

.remove-btn:hover {
    color: #a61e1a;
    background-color: rgba(219, 46, 36, 0.1);
}

.item-price-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    color: #db2e24;
}

/* Cart Summary Section */
.cart-summary-card {
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.summary-title {
    font-size: 18px;
    line-height: 30px;
    color: #000;
    margin-bottom: 16px;
}

.coupon-section {
    padding: 24px;
    border: 1px solid #cccccc;
    border-radius: 16px;
    background: white;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.coupon-input:focus {
    outline: none;
    border-color: #294f9b;
}

.apply-coupon-btn {
    background: #294f9b;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.apply-coupon-btn:hover {
    background: #0b2156;
}

.summary-section {
    width: 100%;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.summary-row.discount {
    padding: 24px 0;
    border-top: 1px solid #eceef0;
    border-bottom: 1px solid #eceef0;
    margin: 0;
}

.summary-row.final {
    margin: 24px 0;
    color: #294f9b;
}

.summary-label {
    font-size: 18px;
    line-height: 30px;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
}

.summary-value.discount {
    color: #db2e24;
}

.summary-value.final {
    color: #294f9b;
}

.checkout-button {
    width: 100%;
    padding: 12px 32px;
    background: #f6bb3a;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.checkout-button:hover {
    background: #e2a248;
    transform: translateY(-2px);
}

.checkout-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.terms-text {
    font-size: 16px;
    line-height: 24px;
    color: #666;
    margin-top: 24px;
}

.terms-link {
    color: #317ae8;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.clear-cart-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eceef0;
    text-align: center;
}

.clear-cart-btn {
    background: none;
    border: 1px solid #db2e24;
    color: #db2e24;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.clear-cart-btn:hover {
    background: #db2e24;
    color: white;
    transform: translateY(-1px);
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
}

.empty-cart p {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px 0;
}

.browse-courses-btn {
    background: #f6bb3a;
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.2s ease;
}

.browse-courses-btn:hover {
    background: #e2a248;
    color: #000;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Custom Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(4px);
}

.custom-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.12);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.custom-modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eceef0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.custom-modal-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin: 0;
}

.custom-modal-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-close:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
}

.custom-modal-body {
    padding: 0 24px;
    font-size: 16px;
    line-height: 24px;
    color: #333;
    margin-bottom: 32px;
}

.custom-modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.custom-modal-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #eceef0;
}

.custom-modal-btn-secondary:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

.custom-modal-btn-primary {
    background: #294f9b;
    color: white;
}

.custom-modal-btn-primary:hover {
    background: #0b2156;
    transform: translateY(-1px);
}

/* Toast Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-success {
    background: #10b981;
}

.toast.toast-error {
    background: #ef4444;
}

.toast.toast-info {
    background: #3b82f6;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .cart-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .cart-section {
        width: 548px;
    }

    .cart-section.summary {
        width: 569px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px 8px 80px;
    }

    .cart-items-card,
    .cart-summary-card {
        padding: 16px;
    }

    .cart-item {
        flex-direction: column;
        gap: 12px;
    }

    .item-price-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .coupon-input-group {
        flex-direction: column;
    }

    .apply-coupon-btn {
        width: 100%;
    }

    .custom-modal {
        width: 95%;
        margin: 16px;
    }

    .custom-modal-footer {
        flex-direction: column;
    }

    .custom-modal-btn {
        width: 100%;
    }
}

.product-icon {
  width: 48px;
  height: 48px;
  background: #294F9B;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}