/* ============================================================
   SIZE & FRAME BUTTONS
   ============================================================ */
.size-option,
.frame-option {
    display: inline-block;
    margin-right: 4px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 40px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.size-option:hover,
.frame-option:hover {
    border-color: #9E8369;
    color: #9E8369;
}

.size-option.active,
.frame-option.active {
    background-color: #9E8369;
    color: #fff;
    border-color: #9E8369;
    font-weight: 600;
}

.size-option:disabled,
.frame-option:disabled {
    cursor: not-allowed;
}

/* Frame-option containers + images */
.frame-option-container {
    display: inline-block;
    text-align: center;
    vertical-align: top;
}

.frame-option-container img {
    display: block;
    width: 40px;
    height: auto;
    margin: 5px auto 20px;
}

/* "BRAK" button — slightly wider */
.frame-option-container:first-child .frame-option {
    width: 64px;
}

/* Row spacing */
.size-table td  { padding-bottom: 35px; }
.frame-table td { padding-bottom: 25px; }

/* ── Textarea ── */
#tekst_klienta {
    width: 100%;
    border: 1px solid #9E8369;
    border-radius: 8px;
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.rkwp-upload-wrap {
    width: 100%;
    margin-top: 20px;
    padding-bottom: 20px;
}

.rkwp-upload-label {
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f7f7f7;
    transition: background-color 0.3s;
}

.rkwp-upload-label:hover {
    background-color: #e7e7e7;
}

#pliki_klienta {
	display:none;
}

.rkwp-file-preview img {
    max-width: 100px !important;
    margin: 10px 10px 0 0;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
}

/* ============================================================
   DESCRIPTION TOGGLE
   ============================================================ */
#my-descript-product {
    position: relative;
    overflow: hidden;
    max-height: 150px;
    transition: max-height 0.3s ease;
}

#my-descript-product.expanded {
    max-height: none;
}

#my-descript-product::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #ffffff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#my-descript-product.expanded::after {
    opacity: 0;
}

.description-toggle-btn {
    display: block;
    margin: 5px auto 40px;
    padding: 0;
    background: none;
    color: #9E8369;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s;
}

.description-toggle-btn:hover {
    color: #7A6A54;
}

/* ============================================================
   VALIDATION
   ============================================================ */
.rkwp-validation {
    color: red;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .variations tr {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
    }
    .variations .label  { margin-bottom: -10px; }
    .variations .value  { width: 100%; }

    .frame-table td { padding: 0 !important; }
    .size-table  td { padding: 0 !important; }
    .tekst-table td { padding: 0 !important; }

    .size-table  .label { margin-top: 30px; }
    .tekst-table .label { margin-top: 30px; }

    .frame-option, .size-option { margin-top: 10px; }

    .single-product .variations .label { padding-top: 10px; }
}
