/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

form#request-quote-form input, form#request-quote-form  textarea {
    margin-bottom: 10px;
    border: 1px solid #282828;
}
form#request-quote-form h2 {
    font-size: 16px;
}
.product-custom-options {
    margin-bottom: 30px;
}
.custom-measurent, .custom-pick-color, .custom-note {
    margin-bottom: 10px;
}
.color-select-section {
    display: flex;
    gap: 20px;
}
a#openMeasurementPopup {
    color: #0078d7;
    text-decoration: underline;
    font-style: italic;
}
#colorModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    overflow: auto;
}
.color-modal-content {
    background: #fff;
    width: 90%;
    margin: auto;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#colorModal ul#color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
#colorModal img.color-choice {
    width: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: transform 0.2s ease;
}
#colorModal img.color-choice:hover {
    transform: scale(1.1);
    border-color: #000;
}
#closeColorModal {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}
table#yith-ywrq-table-list, table#yith-ywrq-table-list td {
    border: 1px solid #ccc;
}
#yith-ywraq-form .product-subtotal, #yith-ywraq-form .product-quantity, #yith-ywraq-form .product-price {
    text-align: left !important;
}
table#yith-ywrq-table-list .product-remove {
    width: 2% !important;
    text-align: center;
    padding: 0;
}
.yith-ywraq-mail-form-wrapper {
    border: 1px solid #ccc;
}
.page-id-1242 h1.page-title {
    font-weight: 500;
}
.custom-fields-email {
    display: none;
}
#yith-ywraq-form table.shop_table thead th {
    border: 1px solid #ccc;
}
td.product-thumbnail a img {
    max-width: 100px;
}
.yith-ywraq-mail-form-wrapper .form-row {
    padding: 0 !important;
}
input#first_name:focus, input#email:focus, input#phone_number:focus, input#last_name:focus {
    border: 1px solid #ccc;
}
.ywraq-wrapper.ywraq-empty .ywraq-before-form {
    padding: 0 !important;;
}
.selected-color-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.selected-color-name {
    font-weight: 600;
}
.selected-color-img {
    width: 40px;
    height: auto;
}
#color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
#color-list li {
  list-style: none;
  width: 80px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  margin: 5px;
  box-sizing: border-box;
}
#color-list img {
  width: 60px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
}
#color-list div {
  font-size: 12px;
  margin-top: 4px;
  width: 100%;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.2;
}

@media (max-width: 767px) {
    table#yith-ywrq-table-list .product-remove {
        width: 10% !important;
        text-align: center;
        padding: 0;
    }
    td.product-thumbnail a img {
        max-width: 80px;
    }
}