/* Custom Size Guide - Frontend Styles */

/* Button */
.csg-modal-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.csg-modal-value {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f1;
    border-radius: 4px;
    font-weight: 600;
    color: #333;
}

.csg-systems-list,
.csg-attributes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.csg-systems-list span,
.csg-attributes-list span {
    padding: 6px 12px;
    background: #e7f3ff;
    border: 1px solid #2271b1;
    border-radius: 4px;
    font-size: 13px;
    color: #2271b1;
}

/* Size Table */
.csg-modal-table {
    margin: 25px 0;
    overflow-x: auto;
}

.csg-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
}

.csg-table thead {
    background: #2271b1;
    color: #fff;
}

.csg-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #1a5a8a;
}

.csg-table td {
    padding: 12px 10px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.csg-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.csg-table tbody tr:hover {
    background: #f0f6fc;
}

.csg-table .csg-size-name {
    font-weight: 600;
    color: #2271b1;
    background: #f0f6fc;
}

/* Modal Footer */
.csg-modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.csg-modal-footer button {
    padding: 10px 24px;
    font-size: 14px;
    cursor: pointer;
    background: #f0f0f1;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.csg-modal-footer button:hover {
    background: #e5e5e5;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .csg-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    #csg-modal-body {
        padding: 20px 15px;
    }
    
    .csg-modal-header h2 {
        font-size: 20px;
    }
    
    .csg-systems-list,
    .csg-attributes-list {
        gap: 8px;
    }
    
    .csg-table {
        font-size: 12px;
    }
    
    .csg-table th,
    .csg-table td {
        padding: 8px 6px;
    }
}

@media screen and (max-width: 480px) {
    .csg-button {
        width: 100%;
        justify-content: center;
    }
    
    .csg-table {
        font-size: 11px;
    }
    
    .csg-table th,
    .csg-table td {
        padding: 6px 4px;
    }
}-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 15px 0;
    background: #fff;
    border: 2px solid #2271b1;
    color: #2271b1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.csg-button:hover {
    /*background: #2271b1;*/
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.csg-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Modal */
.csg-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: csgFadeIn 0.3s ease;
}

@keyframes csgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.csg-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: csgSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes csgSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.csg-modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.csg-modal-close:hover,
.csg-modal-close:focus {
    color: #000;
}

/* Modal Body */
#csg-modal-body {
    padding: 30px;
}

.csg-modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.csg-modal-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 24px;
}

.csg-modal-code {
    color: #666;
    font-size: 14px;
    margin: 5px 0 0;
}

.csg-modal-section {
    margin-bottom: 20px;
}

.csg-modal-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
/*================================
*phần hướng dẫn chọn áo , trong trang chi tiết sản phẩm
*/
#size-usage-guide-button{
    padding: 0.2rem 0px;
    margin:   0px;
    margin-bottom: 0.9rem;
    align-items: center;
    color: #757575;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 400;
    background-color: #ffffff;
    text-transform: none;
    text-decoration: underline;
    color: blue;
}
#size-usage-guide-button:hover{
    color: #000;
    cursor: pointer;
}