
:root {
    --primary: #137F78;
    --primary-dark: #0b8a89;
    --secondary: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-light: #64748b;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --danger: #ef4444;
    --success: #137F78;
    --warning: #f59e0b;
}

.rg-container-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rg-cart-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #137F78;
    color: white;
    border-radius: var(--radius);
}

.rg-cart-header h1 {
    font-size: 32px;
    margin: 0px !important;
    font-weight: 700;
    line-height: 1.2;
}

.rg-cart-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.rg-cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.rg-cart-main {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.rg-cart-main h2 {
    margin: 0 0 20px 0;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.rg-cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rg-cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: white;
    position: relative;
    overflow: hidden;
}

.rg-cart-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.rg-item-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
    flex-shrink: 0;
}

.rg-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rg-item-image:hover img {
    transform: scale(1.05);
}

.rg-item-details {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.rg-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    line-height: 1.3;
}

.rg-item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rg-item-name a:hover {
    color: #137F78;
}

.rg-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rg-meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    flex-wrap: wrap;
}

.rg-meta-item strong {
    color: var(--text);
    min-width: 120px;
}

.rg-meta-item span {
    text-align: right;
    flex: 1;
}

.rg-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.rg-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #137F78;
    text-align: right;
    min-width: 120px;
}

.rg-remove-item {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 15px;
    border: 1px solid #ef4444;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    min-width: 100px;
    text-align: center;
    font-weight: 500;
}

.rg-remove-item:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.rg-remove-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rg-cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.rg-cart-summary {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.rg-summary-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.rg-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.rg-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #137F78;
    border-top: 2px solid var(--border);
    margin-top: 10px;
}

.rg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.rg-btn-primary {
    background: #137F78;
    color: white;
    width: 100%;
}

.rg-btn-primary:hover {
    background: #137F78;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 164, 0.2);
}

.rg-btn-outline {
    background: transparent;
    border: 2px solid #137F78;
    color: #137F78;
    width: 100%;
}

.rg-btn-outline:hover {
    background: #137F78;
    color: white;
    transform: translateY(-2px);
}

.rg-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.rg-cart-actions a {
    color: #fff;
}

.rg-continue-shopping {
    text-align: center;
    color: #137F78;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    display: block;
    font-size: 0.95rem;
    padding: 8px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.rg-continue-shopping:hover {
    background: var(--light);
    color: #137F78;
}

.rg-empty-cart {
        text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    justify-content: center;
    display: grid;
}

.rg-empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #64748b;
    opacity: 0.5;
}

.rg-empty-cart h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.rg-empty-cart p {
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.rg-services-lists,
.rg-accessories-list {
    margin: 5px 0;
    padding-left: 15px;
    width: 100%;
    list-style: none;
}

.rg-service-items,
.rg-accessory-item {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2px 0;
    line-height: 1.4;
}
.service-name,
.accessory-name {text-align: left !important;}
.service-prices,
.accessory-price {
    color: #137F78;
    font-weight: 600;
    font-size: 0.85rem;
}

.service-total,
.accessory-total {
    font-size: 0.9rem;
    font-weight: 700;
    color: #137F78;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
}

@media (max-width: 992px) {
    .rg-cart-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rg-cart-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .rg-cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .rg-item-image {
        width: 150px;
        height: 150px;
    }

    .rg-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border);
        padding-top: 15px;
        margin-top: 10px;
    }

    .rg-item-price {
        font-size: 1.2rem;
        min-width: auto;
    }
}

.p-t-check,
.con-sh {
    background-color: #137F78;
    color: #fff;
}

.con-sh:hover {
    background-color: #F28526;
    color: #fff;
}

.b-t-c {
    background-color: #137F78 !important;
}

.b-t-c:hover {
    background-color: #F28526;
}



/* Toast Notification Styles */
.rg-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rg-toast.hide {
    animation: slideOut 0.3s ease-in forwards;
}

.rg-toast.success {
    background: #137F78;
    color: white;
    border-left: 5px solid #059669;
}

.rg-toast.error {
    background: #ef4444;
    color: white;
    border-left: 5px solid #dc2626;
}

.rg-toast.warning {
    background: #f59e0b;
    color: white;
    border-left: 5px solid #d97706;
}

.rg-toast.info {
    background: #3b82f6;
    color: white;
    border-left: 5px solid #1d4ed8;
}

.toast-content {
    flex: 1;
    margin-right: 15px;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
