@charset "utf-8";

/******************************************************************** structure
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #dc3545;
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: #ecf0f1;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid #34495e;
    font-size: 14px;
    color: #95a5a6;
    font-weight: 500;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.menu-item {
    border-bottom: 1px solid #34495e;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s;
    position: relative;
}

.menu-link:hover {
    background: #34495e;
}

.menu-link.active {
    background: #34495e;
}

.menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3498db;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.menu-text {
    flex: 1;
    font-size: 14px;
}

.menu-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.menu-item.expanded .menu-arrow {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    background: #1a252f;
    display: none;
}

.menu-item.expanded .submenu {
    display: block;
}

.submenu-item {
    border-bottom: 1px solid #1a252f;
}

.submenu-link {
    display: block;
    padding: 12px 20px 12px 56px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.submenu-link:hover {
    background: #2c3e50;
    color: #ecf0f1;
}

.submenu-link.active {
    background: #2c3e50;
    color: #3498db;
}

/* Main Content */
.main-wrapper {
    margin-left: 250px;
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-wrapper {
    margin-left: 0;
}

.sidebar.collapsed ~ .fixed-bottom-button {
    left: 0;
}

.content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Content Cards */
.welcome-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.welcome-card h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.welcome-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-item label {
    display: inline-block;
    width: 150px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.info-item span {
    color: #333;
    font-size: 14px;
}

.email-verified {
    display: inline-block;
    padding: 4px 12px;
    background: #27ae60;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.email-unverified {
    display: inline-block;
    padding: 4px 12px;
    background: #e74c3c;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Password Change */
.password-change-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.password-change-card h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dc3545;
}

.password-change-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #dc3545;
}

.form-control.error {
    border-color: #e74c3c;
}

.form-help {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.message-box {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message-box.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.message-box.success p {
    margin: 0;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-primary {
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #c82333;
}

.btn-secondary {
    padding: 12px 30px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Login Page */
.login-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.login-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-form-group input.error {
    border-color: #e74c3c;
}

.login-error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Product Page */
.product-page {
    padding: 20px 0;
}

.page-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #dc3545;
}

.breadcrumb-link .material-symbols-outlined {
    font-size: 18px;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    font-weight: 500;
}

.breadcrumb-current .material-symbols-outlined {
    font-size: 18px;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: #999;
}

.breadcrumb-separator .material-symbols-outlined {
    font-size: 18px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step.active:not(:last-child)::after {
    background: #ff9800;
}

.progress-step.active .step-number {
    background: #ff9800;
    color: white;
}

.progress-step.active .step-label {
    color: #ff9800;
    font-weight: 600;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.step-label {
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* Category Filter */
.category-filter {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-form label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.category-select {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.category-select:focus {
    outline: none;
    border-color: #dc3545;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.no-image {
    color: #999;
    font-size: 14px;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 44px;
}

.product-code {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 15px;
}

.product-features {
    margin-bottom: 15px;
    flex: 1;
}

.features-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.features-content {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    max-height: 100px;
    overflow-y: auto;
}

.product-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.quantity-input label {
    font-size: 12px;
    color: #666;
}

.quantity-field {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.quantity-field:focus {
    outline: none;
    border-color: #dc3545;
}

.unit {
    font-size: 12px;
    color: #666;
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: #1a79cf;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}

.btn-add-cart:hover:not(.added):not(:disabled) {
    background: #1565c0;
}

.btn-add-cart.added {
    background: #ff9800;
    cursor: default;
}

.btn-add-cart.added:hover {
    background: #ff9800;
    opacity: 0.9;
}

.btn-add-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-products p {
    color: #666;
    font-size: 16px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-per-page label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.per-page-select {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.per-page-select:focus {
    outline: none;
    border-color: #dc3545;
}

/* Legacy per-page-select (if exists) */

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
}

.pagination-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s, border-color 0.3s;
    min-width: 40px;
    text-align: center;
}

.pagination-link:hover:not(.disabled):not(.active) {
    background: #f5f5f5;
    border-color: #dc3545;
}

.pagination-link.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    font-weight: 600;
}

.pagination-link.disabled {
    color: #999;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .progress-step {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .step-number {
        margin-bottom: 0;
    }
    
    .pagination-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .breadcrumb {
        width: 100%;
        justify-content: flex-end;
    }
    
    .cart-container {
        flex-direction: column;
    }
    
    .cart-items-section,
    .shipping-payment-section {
        width: 100%;
    }
}

/* Cart Page */
.cart-page {
    padding: 20px 0;
}

.cart-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-items-section,
.shipping-payment-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.cart-items-section {
    flex: 1;
}

.shipping-payment-section {
    width: 500px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header .material-symbols-outlined {
    font-size: 24px;
    color: #dc3545;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.btn-info {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-info:hover {
    background: #e0e0e0;
}

.cart-table-wrapper {
    overflow-x: auto;
    margin-bottom: 15px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: #f8f9fa;
}

.cart-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #e0e0e0;
}

.cart-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-table tbody tr:hover {
    background: #f8f9fa;
}

.product-name-cell {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tax-mark {
    color: #dc3545;
    font-weight: 600;
}

.price-cell {
    font-weight: 600;
    color: #333;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input-table {
    width: 70px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.quantity-input-table:focus {
    outline: none;
    border-color: #dc3545;
}

.unit-text {
    font-size: 12px;
    color: #666;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.btn-remove-item:hover {
    color: #c82333;
}

.btn-remove-item .material-symbols-outlined {
    font-size: 20px;
}

.tax-note {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.cart-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.summary-label {
    color: #333;
}

.summary-value {
    color: #dc3545;
    font-size: 18px;
}

.summary-breakdown {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.breakdown-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}

.breakdown-label {
    color: #666;
}

.breakdown-value {
    color: #333;
}

.cart-actions {
    margin-top: 20px;
}

.btn-clear-all {
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-clear-all:hover {
    background: #e0e0e0;
}

.info-message {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.cart-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn-back {
    padding: 12px 30px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    display: inline-block;
}

.btn-back:hover {
    background: #e0e0e0;
}

.btn-confirm {
    padding: 12px 30px;
    background: #dc3545;
    border: none;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-confirm:hover {
    background: #c82333;
}

.btn-confirm .material-symbols-outlined {
    font-size: 18px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
    margin-bottom: 20px;
}

.empty-cart-icon .material-symbols-outlined {
    font-size: 64px;
    color: #ccc;
}

.empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.btn-back-to-products {
    padding: 12px 30px;
    background: #dc3545;
    border: none;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.btn-back-to-products:hover {
    background: #c82333;
}

@media (max-width: 1024px) {
    .shipping-payment-section {
        width: 100%;
    }
}

/* Fixed Bottom Button */
.fixed-bottom-button {
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    z-index: 1000;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    transition: left 0.3s ease;
}

.btn-proceed-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    width: 300px;
}

.btn-proceed-to-cart:hover:not(.disabled) {
    background: #c82333;
}

.btn-proceed-to-cart.disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-proceed-to-cart.disabled:hover {
    background: #ccc;
}

.btn-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    color: #dc3545;
}

.btn-proceed-to-cart .material-symbols-outlined {
    font-size: 18px;
}

/* Adjust content padding when fixed button is visible */
.product-page {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .fixed-bottom-button {
        left: 0;
        padding: 12px 15px;
    }
    
    .btn-proceed-to-cart {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Checkout Page */
.checkout-page {
    padding: 20px 0;
}

.checkout-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-summary-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.cart-summary-content {
    padding: 20px 0;
}

.cart-summary-content a {
    color: #dc3545;
    text-decoration: underline;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-select {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.form-select:focus {
    outline: none;
    border-color: #dc3545;
}

.form-select[type="date"] {
    background-image: none;
    padding-right: 20px;
}

.form-hint {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.form-note {
    font-size: 12px;
    color: #666;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.form-textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: #dc3545;
}

.important-notes {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin-top: 10px;
}

.important-notes p {
    font-size: 12px;
    color: #856404;
    margin-bottom: 8px;
    line-height: 1.6;
}

.important-notes p:last-child {
    margin-bottom: 0;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 1024px) {
    .checkout-container {
        flex-direction: column;
    }
    
    .cart-summary-section,
    .shipping-payment-section {
        width: 100%;
    }
}

/* Checkout Confirm Page */
.checkout-confirm-page {
    padding: 20px 0;
}

.confirm-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.confirm-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.confirm-right {
    width: 400px;
}

.product-details-section,
.shipping-address-section,
.total-summary-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.address-details {
    margin-bottom: 20px;
}

.address-table {
    width: 100%;
    border-collapse: collapse;
}

.address-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.address-table tr:last-child {
    border-bottom: none;
}

.address-label {
    padding: 12px 0;
    width: 120px;
    font-size: 14px;
    color: #666;
    vertical-align: top;
}

.address-value {
    padding: 12px 0;
    font-size: 14px;
    color: #333;
}

.address-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-change-address {
    padding: 8px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
    display: inline-block;
}

.btn-change-address:hover {
    background: #e0e0e0;
}

.total-details {
    margin-top: 10px;
}

.total-table {
    width: 100%;
    border-collapse: collapse;
}

.total-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.total-table tr:last-child {
    border-bottom: none;
}

.total-label {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    vertical-align: top;
}

.total-value {
    padding: 12px 0;
    font-size: 14px;
    color: #333;
    text-align: right;
    font-weight: 600;
}

.breakdown-header {
    background: #f8f9fa;
}

.breakdown-title {
    padding: 8px 0;
    font-size: 12px;
    color: #666;
}

.breakdown-label {
    padding: 6px 0 6px 20px;
    font-size: 13px;
    color: #666;
}

.breakdown-value {
    padding: 6px 0;
    font-size: 13px;
    color: #333;
    text-align: right;
}

.grand-total-row {
    border-top: 2px solid #dc3545;
    background: #fff5f5;
}

.grand-total-value {
    padding: 15px 0;
    font-size: 18px;
    color: #dc3545;
    text-align: right;
    font-weight: 700;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-purchase {
    padding: 12px 30px;
    background: #dc3545;
    border: none;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    cursor: pointer;
}

.btn-purchase:hover {
    background: #c82333;
}

@media (max-width: 1024px) {
    .confirm-container {
        flex-direction: column;
    }
    
    .confirm-right {
        width: 100%;
    }
    
    .confirm-actions {
        flex-direction: column;
    }
    
    .btn-back,
    .btn-cancel,
    .btn-purchase {
        width: 100%;
        text-align: center;
    }
}

/* Checkout Complete Page */
.checkout-complete-page {
    padding: 20px 0;
}

.complete-message {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon .material-symbols-outlined {
    font-size: 64px;
    color: #28a745;
}

.complete-message h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.complete-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.complete-message strong {
    color: #dc3545;
    font-size: 18px;
}

.complete-actions {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-back-to-home {
    padding: 12px 30px;
    background: #dc3545;
    border: none;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.btn-back-to-home:hover {
    background: #c82333;
}

/* Autoship Page */
.autoship-page {
    padding: 20px 0 100px 0;
}

.autoship-notes {
    margin: 15px 0 30px 0;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.notes-title {
    font-size: 13px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
}

.notes-content {
    font-size: 12px;
    color: #856404;
    line-height: 1.6;
}

.notes-content p {
    margin: 4px 0;
}

.btn-proceed-to-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    width: 400px;
}

.btn-proceed-to-details:hover:not(.disabled) {
    background: #c82333;
}

.btn-proceed-to-details.disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-proceed-to-details.disabled:hover {
    background: #ccc;
}

@media (max-width: 768px) {
    .btn-proceed-to-details {
        width: 100%;
    }
}

/* Link Page */
.link-page {
    padding: 20px 0;
}

.link-description {
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.link-filter {
    margin-bottom: 30px;
}

.link-filter label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    min-height: 400px;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.link-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    min-height: 60px;
}

.link-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}


.link-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.link-thumbnail {
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.link-thumbnail img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}


.link-message {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    min-height: 80px;
    max-height: 100px;
}

.link-action {
    margin-top: auto;
    padding-top: 15px;
    flex-shrink: 0;
}

.btn-link {
    width: 100%;
    justify-content: center;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1a79cf;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-link:hover {
    background: #1565c0;
}

.btn-link .material-symbols-outlined {
    font-size: 18px;
}

.no-links {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-links p {
    color: #666;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .link-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .link-cards {
        grid-template-columns: 1fr;
    }
    
    .link-card-header {
        padding: 12px 15px;
    }
    
    .link-card-content {
        padding: 15px;
    }
    
    .link-title {
        font-size: 14px;
    }
}

/* Document Page */
.document-page {
    padding: 20px 0;
}

.document-filter {
    margin-bottom: 30px;
}

.document-filter label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.document-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.document-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    min-height: 400px;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.document-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    min-height: 60px;
}

.document-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}


.document-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.document-thumbnail {
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.document-thumbnail img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.document-message {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    min-height: 80px;
    max-height: 100px;
}

.document-action {
    margin-top: auto;
    padding-top: 15px;
    flex-shrink: 0;
}

.btn-document {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1a79cf;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    width: 100%;
    justify-content: center;
}

.btn-document:hover {
    background: #1565c0;
}

.btn-document .material-symbols-outlined {
    font-size: 18px;
}

.no-documents {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

.no-documents p {
    color: #666;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .document-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .document-cards {
        grid-template-columns: 1fr;
    }
    
    .document-card-header {
        padding: 12px 15px;
    }
    
    .document-card-content {
        padding: 15px;
    }
    
    .document-title {
        font-size: 14px;
    }
}

/* Video Page */
.video-page {
    padding: 20px 0;
}

.video-filter {
    margin-bottom: 30px;
}

.video-filter label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.video-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.video-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.video-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    min-height: 60px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.video-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
}

.video-thumbnail-placeholder .material-symbols-outlined {
    font-size: 48px;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-button {
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    padding: 0;
}

.video-play-button:hover {
    transform: scale(1.1);
    background: rgba(220, 53, 69, 1);
}

.video-play-button .material-symbols-outlined {
    font-size: 48px;
    color: white;
    margin-left: 4px;
}

.video-youtube-link {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s;
    z-index: 10;
}

.video-youtube-link:hover {
    background: rgba(220, 53, 69, 1);
}

.video-youtube-link .material-symbols-outlined {
    font-size: 16px;
}

.video-copy-link {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    padding: 0;
}

.video-copy-link:hover {
    background: rgba(255, 255, 255, 1);
}

.video-copy-link .material-symbols-outlined {
    font-size: 20px;
    color: #333;
}

.video-message {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    min-height: 60px;
    max-height: 100px;
}

.no-videos {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

.no-videos p {
    color: #666;
    font-size: 16px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s;
    padding: 0;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-close .material-symbols-outlined {
    font-size: 24px;
    color: white;
}

.video-modal-title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.video-modal-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-modal-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .video-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-cards {
        grid-template-columns: 1fr;
    }
    
    .video-card-header {
        padding: 12px 15px;
    }
    
    .video-card-content {
        padding: 15px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .video-modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button .material-symbols-outlined {
        font-size: 36px;
    }
}

/* ========================================
   Message Page Styles
   ======================================== */

.message-page {
    padding: 20px;
}

.message-filter {
    margin-bottom: 20px;
}

.message-filter label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.message-date-indicator {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 16px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    border-radius: 4px;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.message-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4caf50;
    border-radius: 50%;
    color: #fff;
}

.message-icon .material-symbols-outlined {
    font-size: 28px;
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.message-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.message-date {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.message-new-badge {
    background-color: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.message-read-badge {
    background-color: #6c757d;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.message-body {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.message-body p {
    margin: 0;
}

.message-footer {
    margin-top: auto;
}

.message-read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.message-read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Home Page Messages Section */
.home-messages-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.home-messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.home-messages-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.home-messages-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-messages-title-icon {
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-messages-pagination {
    color: #666;
    font-size: 14px;
}

.home-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.home-message-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.home-message-item:hover {
    background-color: #f5f5f5;
}

.home-message-new-badge {
    background-color: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    height: fit-content;
    flex-shrink: 0;
}

.home-message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-message-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-message-date {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.home-message-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
}

.home-message-title:hover {
    color: #007bff;
    text-decoration: underline;
}

.home-message-body {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-top: 4px;
}

.home-no-messages {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.home-messages-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-messages-pagination-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.home-messages-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.home-messages-pagination-btn:hover {
    background-color: #f5f5f5;
    border-color: #007bff;
    color: #007bff;
}

.home-messages-pagination-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.home-messages-pagination-btn-disabled:hover {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
    color: #333;
}

.home-messages-pagination-btn .material-symbols-outlined {
    font-size: 20px;
}

.home-messages-view-all {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.home-messages-view-all:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Card Registration Page */
.card-registration-page {
    padding: 20px;
    width: 100%;
}

.card-registration-container {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card-registration-message {
    margin-bottom: 30px;
}

.card-registration-message p {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.card-registration-message .sub-message {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.card-registration-container .form-actions {
    margin-top: 30px;
}

.card-registration-container .btn {
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    min-width: 150px;
}

.card-registration-container .btn:hover {
    background: #c82333;
}

.card-registration-container .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.card-registration-info {
    margin-bottom: 30px;
    text-align: left;
}

.card-registration-info h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-registration-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.payment-iframe-container {
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.payment-iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.payment-iframe-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.btn-close-iframe {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-close-iframe:hover {
    background-color: #e0e0e0;
}

.btn-close-iframe .material-symbols-outlined {
    font-size: 24px;
}

.payment-iframe {
    width: 100%;
    min-height: 800px;
    height: calc(100vh - 300px);
    border: none;
    display: block;
    box-sizing: border-box;
}

.payment-status-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.payment-status-message .status-icon {
    margin-bottom: 20px;
}

.payment-status-message .status-icon .material-symbols-outlined {
    font-size: 64px;
    color: #ff9800;
}

.payment-status-message h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-status-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.card-registration-registered {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 40px;
    margin: 20px 0;
}

.registered-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.registered-header .status-icon.success {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.registered-header .status-icon.success .material-symbols-outlined {
    font-size: 36px;
    color: white;
}

.registered-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.registered-info {
    margin-top: 20px;
}

.registered-info .info-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.registered-info .info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.registered-info .info-row:last-child {
    border-bottom: none;
}

.registered-info .info-label {
    min-width: 180px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.registered-info .info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    word-break: break-all;
}

.registered-info .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.registered-info .badge-success {
    background: #d4edda;
    color: #155724;
}

.registered-actions {
    text-align: center;
    padding-top: 20px;
}

.registered-actions .info-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.registered-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.registered-actions .btn-secondary .material-symbols-outlined {
    font-size: 18px;
}

/* Card Registration Success Page */
.card-registration-success {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
}

.card-registration-success .success-message {
    margin-bottom: 30px;
}

.card-registration-success .success-icon {
    margin-bottom: 20px;
}

.card-registration-success .success-icon .material-symbols-outlined {
    font-size: 64px;
    color: #4caf50;
}

.card-registration-success .success-message h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-registration-success .success-message p {
    color: #666;
    font-size: 16px;
}

.card-registration-success .success-actions {
    margin-top: 30px;
}

.card-registration-success .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.card-registration-success .btn:hover {
    background: #c82333;
}

.card-registration-success .btn .material-symbols-outlined {
    font-size: 20px;
}

/* Message Detail Page */
.message-detail-page {
    padding: 20px;
}

.message-detail-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.message-detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.message-detail-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4caf50;
    border-radius: 50%;
    color: #fff;
}

.message-detail-icon .material-symbols-outlined {
    font-size: 32px;
}

.message-detail-title-section {
    flex: 1;
}

.message-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.message-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-detail-date {
    font-size: 14px;
    color: #666;
}

.message-detail-body {
    margin-bottom: 30px;
}

.message-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.message-detail-signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.message-detail-footer {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-back-to-messages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-back-to-messages:hover {
    background-color: #5a6268;
    color: #fff;
}

.btn-back-to-messages .material-symbols-outlined {
    font-size: 20px;
}

/* ========================================
   Event Calendar Page Styles
   ======================================== */

.event-calendar-page {
    padding: 20px;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-row-inline {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.filter-select:focus {
    outline: none;
    border-color: #dc3545;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-button:hover {
    background-color: #f6f8fa;
    border-color: #0969da;
    color: #0969da;
}

.nav-button .material-symbols-outlined {
    font-size: 20px;
}

.today-button {
    width: auto;
    padding: 0 12px;
    font-size: 14px;
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 10px;
    min-width: 120px;
    text-align: center;
}

.view-toggle {
    display: flex;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    overflow: hidden;
}

.view-button {
    padding: 6px 16px;
    border: none;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-button:hover {
    background-color: #f6f8fa;
}

.view-button.active {
    background-color: #0969da;
    color: #fff;
}

.calendar-wrapper {
    display: flex;
    gap: 20px;
}

.calendar-grid {
    flex: 1;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f6f8fa;
    border-bottom: 2px solid #e0e0e0;
}

.calendar-day-header {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-right: 1px solid #e0e0e0;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-day-header.saturday {
    background-color: #e3f2fd;
    color: #1976d2;
}

.calendar-day-header.sunday {
    background-color: #ffebee;
    color: #c62828;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.other-month {
    background-color: #f9f9f9;
    color: #999;
}

.calendar-day.today {
    background-color: #fff3cd;
}

.calendar-day.today .day-number {
    font-weight: 700;
    color: #856404;
}

.calendar-day.selected {
    background-color: #e3f2fd;
    border: 2px solid #1976d2;
}

.calendar-day.saturday {
    background-color: #e3f2fd;
}

.calendar-day.sunday {
    background-color: #ffebee;
}

.calendar-day:hover {
    background-color: #f0f0f0;
}

.calendar-day.selected:hover {
    background-color: #bbdefb;
}

.day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.day-events {
    margin-top: 4px;
}

.event-indicator {
    display: inline-block;
    padding: 2px 6px;
    background-color: #0969da;
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.calendar-sidebar {
    width: 250px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-header {
    padding: 15px;
    background-color: #f6f8fa;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sidebar-content {
    padding: 15px;
}

.selected-date {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.selected-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #0969da;
}

.event-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.event-place {
    font-size: 12px;
    color: #666;
}

.no-events {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px 0;
}

/* Week View Styles */
.calendar-grid.week-view {
    display: block;
}

.week-view-container {
    display: flex;
    flex-direction: column;
}

.week-day-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 80px;
}

.week-day-row:last-child {
    border-bottom: none;
}

.week-day-row:hover {
    background-color: #f9f9f9;
}

.week-day-row.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
}

.week-day-row.today {
    background-color: #fff3cd;
}

.week-day-row.saturday {
    background-color: #e3f2fd;
}

.week-day-row.saturday .week-day-name {
    color: #1976d2;
}

.week-day-row.sunday {
    background-color: #ffebee;
}

.week-day-row.sunday .week-day-name {
    color: #c62828;
}

.week-day-header {
    width: 120px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e0e0e0;
    background-color: #f6f8fa;
    flex-shrink: 0;
}

.week-day-number {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.week-day-name {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.week-day-events {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.week-event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #0969da;
}

.week-event-time {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.week-event-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .calendar-wrapper {
        flex-direction: column;
    }
    
    .calendar-sidebar {
        width: 100%;
    }
}

/* ========================================
   Purchase History Page Styles
   ======================================== */

.purchase-history-page {
    padding: 20px;
}

.history-filters {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.history-filters .filter-form {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}

.filter-row {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.filter-select:focus {
    outline: none;
    border-color: #dc3545;
}

.search-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 8px 0;
}

.search-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.search-icon {
    color: #0969da;
    font-size: 22px;
}

.search-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.filter-info {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    background-color: #f6f8fa;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    flex-wrap: wrap;
}

.filter-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-info span::before {
    content: "•";
    color: #0969da;
    font-weight: bold;
    margin-right: 4px;
}

.filter-info span:first-child::before {
    content: "";
    margin-right: 0;
}

.history-table-wrapper {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background-color: #f6f8fa;
}

.history-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.history-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.history-table tbody tr:hover {
    background-color: #f9f9f9;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.amount-cell {
    text-align: right;
    font-weight: 500;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.history-summary {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding: 15px 20px;
    background-color: #f6f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-row {
    transition: background-color 0.2s;
}

.history-row:hover {
    background-color: #f0f7ff !important;
}

/* Order Detail Modal */
.order-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}

.order-detail-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.order-detail-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-x: hidden;
    overflow-y: hidden;
}

.order-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f6f8fa;
}

.order-detail-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.order-detail-modal-close {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.order-detail-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.order-detail-modal-close .material-symbols-outlined {
    font-size: 24px;
    color: #666;
}

.order-detail-modal-body {
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-width: 0;
}

.order-detail-section {
    margin-bottom: 24px;
}

.order-detail-section:last-child {
    margin-bottom: 0;
}

.order-detail-info-row {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    min-width: 0;
}

.order-detail-section-half {
    flex: 1;
    min-width: 0;
}

.order-detail-product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    table-layout: fixed;
    word-wrap: break-word;
}

.order-detail-product-table thead {
    background-color: #f6f8fa;
}

.order-detail-product-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.order-detail-product-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.order-detail-product-table tbody tr:last-child td {
    border-bottom: none;
}

.order-detail-note {
    font-size: 12px;
    color: #666;
    padding: 8px 0;
    font-style: italic;
}

.order-detail-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.order-detail-section-header .material-symbols-outlined {
    font-size: 24px;
    color: #dc3545;
}

.order-detail-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.order-detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-detail-info-item:last-child {
    border-bottom: none;
}

.order-detail-info-item .info-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
    min-width: 120px;
    flex-shrink: 0;
}

.order-detail-info-item .info-value {
    color: #333;
    font-size: 14px;
    flex: 1;
}

.order-detail-breakdown {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 132px;
    width: 100%;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breakdown-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
    min-width: 80px;
}

.breakdown-value {
    color: #333;
    font-size: 14px;
}

.order-detail-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
}

.order-detail-total .info-label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.order-detail-total .info-value {
    font-weight: 600;
    font-size: 16px;
    color: #dc3545;
}

@media (max-width: 768px) {
    .order-detail-modal-content {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }

    .order-detail-modal-body {
        padding: 16px;
    }

    .order-detail-info-row {
        flex-direction: column;
        gap: 20px;
    }

    .order-detail-section-half {
        width: 100%;
    }

    .order-detail-product-table {
        font-size: 12px;
    }

    .order-detail-product-table th,
    .order-detail-product-table td {
        padding: 8px 10px;
    }

    .order-detail-info-item {
        flex-direction: column;
        gap: 4px;
    }

    .order-detail-info-item .info-label {
        min-width: auto;
    }

    .breakdown-list {
        margin-left: 0;
    }
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 768px) {
    .purchase-history-page {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .history-filters {
        padding: 16px;
    }
    
    .filter-row {
        gap: 16px;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .search-row {
        padding: 10px 0;
    }
    
    .filter-info {
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .history-table {
        font-size: 12px;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px 10px;
    }
    
    .history-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-calendar-page {
        padding: 15px;
    }
    
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .calendar-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .current-month {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .message-page {
        padding: 15px;
    }
    
    .message-card {
        padding: 15px;
        flex-direction: column;
    }
    
    .message-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .message-meta {
        align-self: flex-start;
    }
    
    .message-detail-card {
        padding: 20px;
    }
    
    .message-detail-header {
        flex-direction: column;
    }
    
    .message-detail-title {
        font-size: 20px;
    }
}

/* ========================================
   Personal Info Page Styles
   ======================================== */

.personal-info-page {
    padding: 20px;
}

.personal-info-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.personal-info-left {
    flex: 1;
    min-width: 0;
}

.personal-info-right {
    flex: 1;
    min-width: 0;
}

.info-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f6f8fa;
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title .material-symbols-outlined {
    font-size: 24px;
    color: #dc3545;
}

.info-card-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.btn-edit {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-edit:hover {
    background-color: #218838;
}

.info-card-body {
    padding: 20px;
}

.info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
    min-width: 150px;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    font-size: 14px;
    flex: 1;
}

.info-section-header {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    padding: 12px 0 8px 0;
    margin-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.address-select-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.address-select-form {
    width: 100%;
}

.address-select-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.address-select-input {
    flex: 1;
    padding: 8px 12px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

.address-select-input:focus {
    outline: none;
    border-color: #dc3545;
}

.btn-apply {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-apply:hover {
    background-color: #f57c00;
}

/* Edit Mode Styles */
.btn-edit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 8px;
}

.btn-cancel:hover {
    background-color: #545b62;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #dc3545;
}

.form-select {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-select:focus {
    outline: none;
    border-color: #dc3545;
}

.form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-save {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-save:hover {
    background-color: #218838;
}

.btn-cancel-form {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel-form:hover {
    background-color: #545b62;
}

/* ========================================
   Address Page Styles
   ======================================== */

.address-page {
    padding: 20px;
}

.address-actions {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

/* Address Modal Styles */
.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.address-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.address-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.address-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.address-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.address-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
}

.address-modal-close:hover {
    color: #333;
}

.address-modal-close .material-symbols-outlined {
    font-size: 24px;
}

.address-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.address-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #dc3545;
}

.form-group .form-input,
.form-group .form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group .form-input:focus,
.form-group .form-select:focus {
    outline: none;
    border-color: #dc3545;
}

.form-group .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.address-page .btn-new-registration {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.address-page .btn-new-registration:hover {
    background-color: #0056b3;
}

.address-card-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
}

.address-card-actions .btn-edit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.address-card-actions .btn-edit:hover {
    background-color: #0056b3;
}

.address-card-actions .btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.address-card-actions .btn-delete:hover {
    background-color: #c82333;
}

/* ========================================
   Autoship Status Page Styles
   ======================================== */

.autoship-status-page {
    padding: 20px;
}

.month-selector {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-select-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-select-form label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.month-select {
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 150px;
}

.month-select:focus {
    outline: none;
    border-color: #dc3545;
}

.autoship-status-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.autoship-status-table {
    width: 100%;
    border-collapse: collapse;
}

.autoship-status-table thead {
    background-color: #f6f8fa;
}

.autoship-status-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #e0e0e0;
}

.autoship-status-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.autoship-status-table tbody tr:last-child td {
    border-bottom: none;
}

.autoship-status-table .amount-cell {
    text-align: left;
    font-weight: 500;
}

.autoship-status-table .no-data {
    text-align: center;
    color: #999;
    padding: 40px 16px;
}

.tax-note {
    padding: 12px 16px;
    font-size: 12px;
    color: #666;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.payment-details-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.payment-details-row {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.payment-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.payment-detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.payment-detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.payment-amount-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-amount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.payment-amount-item.payment-total {
    border-top: 2px solid #e0e0e0;
    padding-top: 16px;
    margin-top: 8px;
}

.payment-amount-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.payment-amount-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.payment-amount-item.payment-total .payment-amount-label,
.payment-amount-item.payment-total .payment-amount-value {
    font-size: 16px;
    font-weight: 700;
}

.payment-breakdown {
    margin-left: 20px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-label-text {
    font-size: 13px;
    color: #666;
}

.breakdown-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.address-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn-new-registration {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-new-registration:hover {
    background-color: #0056b3;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.address-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.address-card-header {
    padding: 16px 20px;
    border-radius: 8px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f6f8fa;
}

.address-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.address-card-title .material-symbols-outlined {
    font-size: 24px;
    color: #dc3545;
}

.address-card-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.address-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.address-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-contract {
    background-color: #007bff;
    color: white;
}

.tag-product {
    background-color: #ff9800;
    color: white;
}

.tag-document {
    background-color: #e91e63;
    color: white;
}

.address-card-body {
    padding: 20px;
    flex: 1;
}

.address-card-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.btn-delete {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-delete:hover {
    background-color: #5a6268;
}

.no-addresses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

@media (max-width: 768px) {
    .personal-info-layout {
        flex-direction: column;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
    
    .address-page .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .btn-new-registration {
        width: 100%;
    }
    
    .info-label {
        min-width: 120px;
    }
}

/* ユーザー登録招待メールページ */
.invitation-email-page {
    padding: 24px;
}

.invitation-content {
    max-width: 900px;
    margin: 0 auto;
}

.invitation-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.section-bullet {
    color: #333;
    font-size: 16px;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.section-instruction {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.referrer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-label {
    min-width: 100px;
    font-weight: 500;
    color: #333;
}

.form-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.btn-decision {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-decision:hover {
    background-color: #c82333;
}

.btn-decision:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-reset {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-reset:hover {
    background-color: #f8f9fa;
    border-color: #bbb;
}

.email-content {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    white-space: pre-wrap;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
    max-height: 500px;
    overflow-y: auto;
}

.email-content a {
    color: #007bff;
    word-break: break-all;
}

.email-actions {
    display: flex;
    justify-content: flex-start;
}

.btn-send-email {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-send-email:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .invitation-email-page {
        padding: 16px;
    }
    
    .invitation-section {
        padding: 16px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-label {
        min-width: auto;
    }
    
    .form-input {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-decision,
    .btn-reset,
    .btn-send-email {
        width: 100%;
    }
}

/******************************************************************** Registration Page
*/

.registration-page {
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
}

.registration-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.registration-header {
    margin-bottom: 30px;
}

.registration-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.referrer-info {
    background: #f0f7ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.referrer-info strong {
    color: #0066cc;
}

.registration-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.registration-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.registration-tab.active {
    background: white;
    border-bottom-color: #0066cc;
    color: #0066cc;
}

.registration-tab:hover {
    background: #e8e8e8;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 定期購入タブのスタイル */
.autoship-section {
    margin-top: 0;
    width: 100%;
    min-width: 1000px;
}

/* カテゴリーフィルター */
.category-filter {
    margin-bottom: 20px;
}

.category-filter .filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-filter label {
    font-size: 14px;
    color: #333;
}

.category-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

/* 商品グリッド（2列） */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    flex-shrink: 0;
}

.product-code {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.product-description {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    overflow-y: auto;
    max-height: 150px;
    padding-right: 5px;
}

.product-description::-webkit-scrollbar {
    width: 6px;
}

.product-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-description::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.product-description::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.product-description p {
    margin: 5px 0;
}

.no-image {
    color: #999;
    font-size: 14px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

.product-actions-wrapper {
    margin-top: auto;
    flex-shrink: 0;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.quantity-input label {
    font-size: 12px;
    color: #666;
}

.quantity-field {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.unit {
    font-size: 12px;
    color: #666;
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: #c82333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: #218838;
}

.btn-add-cart.added {
    background: #6c757d;
}

/* ナビゲーションボタン */
.autoship-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-nav-back,
.btn-nav-next {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-nav-back {
    background: #6c757d;
    color: white;
}

.btn-nav-back:hover {
    background: #5a6268;
}

.btn-nav-next {
    background: #dc3545;
    color: white;
}

.btn-nav-next:hover {
    background: #c82333;
}

.btn-nav-back .material-symbols-outlined,
.btn-nav-next .material-symbols-outlined {
    font-size: 20px;
}

.autoship-notes {
    background: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.autoship-notes .notes-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #cc9900;
}

.autoship-notes .notes-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.commercial-law-link {
    text-align: right;
    margin-top: 20px;
}

.commercial-law-link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.commercial-law-link a:hover {
    text-decoration: underline;
}

/* プログレスバーのアイコンスタイル */
.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.progress-step.active .step-icon {
    background: #ff9800;
    color: white;
}

.step-icon .material-symbols-outlined {
    font-size: 24px;
}

/* 新規登録タブのスタイル */
.registration-form-section {
    min-width: 800px;
    margin: 0 auto;
}

/* Step 3: 定期購入支払方法選択画面の幅を大きく */
.registration-form-section.payment-method-section {
    max-width: 1000px;
}

/* Step 4: 定期購入申込の確認画面 */
.progress-step.completed .step-icon {
    color: #28a745;
}

.confirmation-section {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.confirmation-section .section-header {
    background: #28a745;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirmation-section .section-body {
    padding: 20px;
    background: white;
}

.confirmation-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dotted #ddd;
}

.confirmation-info-row:last-child {
    border-bottom: none;
}

.confirmation-label {
    min-width: 150px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

.confirmation-value {
    flex: 1;
    color: #666;
    text-align: right;
}

.btn-reselect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-reselect:hover {
    background: #5a6268;
}

.btn-reselect .material-symbols-outlined {
    font-size: 18px;
}

.btn-nav-purchase {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-nav-purchase:hover {
    background: #c82333;
}

.btn-nav-purchase .material-symbols-outlined {
    font-size: 20px;
}

/* Step 5: 申込の完了画面 */
.completion-section {
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

.completion-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.completion-banner .material-symbols-outlined {
    font-size: 28px;
    font-weight: 600;
}

.completion-message {
    margin-bottom: 50px;
    line-height: 2;
}

.completion-message p {
    margin: 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.completion-message p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 20px;
}

.completion-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-login {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.btn-login:hover {
    background: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
}

.btn-login .material-symbols-outlined {
    font-size: 22px;
    font-weight: 600;
}

/* 完了画面のレスポンシブ対応 */
@media (max-width: 768px) {
    .completion-section {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .completion-banner {
        padding: 18px 20px;
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .completion-banner .material-symbols-outlined {
        font-size: 24px;
    }
    
    .completion-message {
        margin-bottom: 35px;
        padding: 0 10px;
    }
    
    .completion-message p {
        font-size: 15px;
        margin: 12px 0;
    }
    
    .completion-message p:first-child {
        font-size: 17px;
        margin-bottom: 15px;
    }
    
    .completion-actions {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .btn-login {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .btn-login .material-symbols-outlined {
        font-size: 20px;
    }
}

.instruction-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 30px;
}

.instruction-box p {
    margin: 5px 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

.form-section-header {
    background: #c82333;
    color: white;
    padding: 10px 15px;
    border-radius: 4px 4px 0 0;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-body {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-row:not(:last-child) {
    border-bottom: 1px dotted #c82333;
    padding-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    min-width: 150px;
    padding-top: 8px;
    flex-shrink: 0;
}

.form-group-input-wrapper {
    flex: 1;
    min-width: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c82333;
}

.form-group input[type="date"] {
    padding: 8px 12px;
}

.form-group-half {
    flex: 0 0 calc(50% - 7.5px);
}

.required {
    color: red;
}

.btn-address-lookup {
    padding: 8px 15px;
    background: #c82333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0;
}

.btn-address-lookup:hover {
    background: #c82333;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin: 0;
    padding: 0;
    min-width: auto;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-group-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.radio-group-wrapper label {
    min-width: 150px;
    padding-top: 8px;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-back {
    padding: 12px 30px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #5a6268;
}

.btn-back .material-symbols-outlined {
    font-size: 20px;
}

.btn-confirm {
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-confirm:hover {
    background: #c82333;
}

.btn-confirm .material-symbols-outlined {
    font-size: 20px;
}

.privacy-policy-link {
    text-align: center;
    margin-top: 20px;
}

.privacy-policy-link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.privacy-policy-link a:hover {
    text-decoration: underline;
}

/* コース選択画面のスタイル */
.course-selection-page {
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-selection-container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.course-selection-header {
    background: #dc3545;
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-selection-header .material-symbols-outlined {
    font-size: 28px;
}

.course-selection-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.course-selection-body {
    padding: 50px 30px;
    text-align: center;
}

.course-selection-instruction {
    font-size: 16px;
    color: #333;
    margin-bottom: 35px;
    font-weight: 500;
}

.course-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.btn-course {
    width: 100%;
    padding: 15px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-course:hover {
    background: #c82333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-course:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-course .arrow {
    font-size: 18px;
    font-weight: bold;
}

.commercial-law-link-top {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.commercial-law-link-top a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.commercial-law-link-top a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Step 3: 定期購入支払方法選択画面 */
.payment-section {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.payment-section .section-header {
    background: #28a745;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-section .section-body {
    padding: 20px;
    background: white;
}

.product-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.product-detail-table th,
.product-detail-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.product-detail-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.product-detail-table td {
    color: #666;
}

.tax-note {
    color: #dc3545;
    font-weight: bold;
}

.tax-note-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.amount-summary {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.amount-label {
    font-weight: 600;
    color: #333;
}

.amount-value {
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
}

.amount-breakdown {
    margin-top: 10px;
    padding-left: 20px;
}

.breakdown-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.breakdown-label {
    color: #666;
}

.breakdown-value {
    color: #333;
}

.info-display-section {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dotted #c82333;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    min-width: 150px;
    font-weight: 500;
    color: #333;
    padding-top: 8px;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: #666;
    padding-top: 8px;
}

.info-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.info-input:focus {
    outline: none;
    border-color: #c82333;
}

.form-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px dotted #c82333;
}

.form-field-label {
    min-width: 150px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

.form-field-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
}

.form-field-select:focus {
    outline: none;
    border-color: #c82333;
}

.payment-method-options {
    display: flex;
    gap: 30px;
    flex: 1;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-method-option span {
    font-size: 14px;
    color: #333;
}

.privacy-agreement {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-checkbox span {
    font-size: 14px;
    color: #333;
}

.error-message {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group-half {
        flex: 1;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .form-field-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-field-label {
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .form-field-select {
        max-width: 100%;
        width: 100%;
    }
    
    .payment-method-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .home-messages-section {
        padding: 20px;
    }
    
    .home-messages-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .home-message-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .home-message-new-badge {
        align-self: flex-start;
    }
    
    .home-messages-footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .home-messages-pagination-controls {
        order: 2;
    }
    
    .home-messages-view-all {
        order: 1;
    }
    
    .card-registration-page {
        padding: 15px;
    }
    
    .card-registration-container {
        padding: 20px;
    }
    
    .payment-iframe {
        height: calc(100vh - 250px);
        min-height: 600px;
    }
}

