/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Tabs Navigation */
.jewelry-tabs-nav {
  display: flex;
  border-bottom: 1px solid #7b8189;
  margin-bottom: 0px;
}

/* Gemstone Selection Styles */
.jpc-gemstone-selection {
    margin: 2em 0;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.jpc-gemstone-selection h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.jpc-gemstone-options {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.jpc-gemstone-category,
.jpc-gemstone {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.jpc-gemstone-category label,
.jpc-gemstone label,
.jpc-gemstone-quality label:first-child {
    font-weight: 600;
    margin-bottom: 5px;
}

.jpc-gemstone-category select,
.jpc-gemstone select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    width: 100%;
    max-width: 300px;
}

.jpc-gemstone-quality {
    margin-top: 1em;
    padding: 10px;
    background-color: #efefef;
    border-radius: 4px;
}

.jpc-gemstone-quality-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 8px;
}

.jpc-gemstone-quality-options label {
    margin-right: 1.5em;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.jpc-gemstone-quality-options label:hover {
    background-color: #f0f0f0;
}

.jpc-gemstone-quality-options input[type="radio"] {
    margin-right: 5px;
}

.jpc-gemstone-quality-options input[type="radio"]:checked + label {
    background-color: #e8f0fe;
    border-color: #99c2ff;
}

/* Responsive styles for gemstone selection */
@media screen and (max-width: 768px) {
    .jpc-gemstone-quality-options {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .jpc-gemstone-quality-options label {
        margin-right: 0;
    }
    
    .jpc-gemstone-category select,
    .jpc-gemstone select {
        max-width: 100%;
    }
}

/* Diamond Selection Styles */
.jewelry-diamond-selection {
    margin: 2em 0;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.jewelry-diamond-selection h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.diamond-quality-selection {
    margin-bottom: 1.5em;
    padding: 10px;
    background-color: #efefef;
    border-radius: 4px;
}

.diamond-quality-selection label {
    margin-right: 1.5em;
    font-weight: 500;
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
}

.diamond-quality-selection input[type="radio"] {
    margin-right: 5px;
}

.diamond-table-container {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 1.5em;
    border: 1px solid #eee;
}

.diamond-selection-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.diamond-selection-table th,
.diamond-selection-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.diamond-selection-table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.diamond-selection-table tbody tr:hover {
    background-color: #f5f5f5;
}

.diamond-selection-table .diamond-select {
    width: 60px;
    text-align: center;
}

.diamond-filters th {
    padding: 5px;
    background-color: #e9e9e9;
}

.diamond-filter {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.update-diamond-selection {
    padding: 10px 15px !important;
    font-weight: 600 !important;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .diamond-table-container {
        max-height: 300px;
        overflow-x: auto;
    }
    
    .diamond-selection-table th,
    .diamond-selection-table td {
        padding: 8px 6px;
        font-size: 0.9em;
    }
    
    .diamond-quality-selection label {
        margin-bottom: 5px;
        display: block;
    }
}