/* ============================================================
   Olaya Woo Services – Frontend Styles
   Palette: White (#ffffff), Burgundy (#8b4557), Soft Pink (#f5e6ea)
   ============================================================ */

/* ---------- Google Font (backup if not loaded by theme) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --ows-burgundy:       #8b4557;
    --ows-burgundy-dark:  #6d3344;
    --ows-burgundy-light: #a85d6f;
    --ows-pink-soft:      #f5e6ea;
    --ows-pink-lighter:   #faf2f5;
    --ows-white:          #ffffff;
    --ows-gray-50:        #fafafa;
    --ows-gray-100:       #f5f5f5;
    --ows-gray-200:       #e5e5e5;
    --ows-gray-300:       #d4d4d4;
    --ows-gray-500:       #737373;
    --ows-gray-700:       #404040;
    --ows-gray-900:       #171717;
    --ows-gold:           #c9a96e;
    --ows-green:          #16a34a;
    --ows-green-bg:       #dcfce7;
    --ows-radius:         14px;
    --ows-radius-sm:      10px;
    --ows-shadow:         0 4px 20px rgba(139, 69, 87, 0.08);
    --ows-shadow-hover:   0 12px 36px rgba(139, 69, 87, 0.15);
    --ows-transition:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --ows-font-display:   'Playfair Display', Georgia, serif;
    --ows-font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Buttons ---------- */
.ows-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--ows-burgundy);
    color: var(--ows-white) !important;
    border: none;
    border-radius: var(--ows-radius-sm);
    font-family: var(--ows-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--ows-transition);
    box-shadow: 0 4px 14px rgba(139, 69, 87, 0.2);
    position: relative;
    overflow: hidden;
}

.ows-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.ows-btn:hover {
    background: var(--ows-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 69, 87, 0.3);
    color: var(--ows-white) !important;
}

.ows-btn:hover::after {
    left: 100%;
}

.ows-btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* ---------- Messages ---------- */
.ows-msg {
    text-align: center;
    padding: 50px 30px;
    border-radius: var(--ows-radius);
    border: 1px solid var(--ows-gray-200);
    font-family: var(--ows-font-body);
}

.ows-msg-error {
    background: var(--ows-pink-lighter);
    border-color: var(--ows-pink-soft);
}

.ows-msg-error h3 {
    font-family: var(--ows-font-display);
    color: var(--ows-burgundy);
    margin-bottom: 10px;
    font-size: 22px;
}

.ows-msg-error p {
    color: var(--ows-burgundy-dark);
    margin-bottom: 20px;
}

.ows-msg-warn {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
    padding: 20px;
    text-align: left;
}

/* ---------- Video Player ---------- */
.ows-video-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.ows-video-wrap h2 {
    font-family: var(--ows-font-display);
    font-size: 28px;
    color: var(--ows-gray-900);
    margin-bottom: 8px;
}

.ows-video-desc {
    color: var(--ows-gray-500);
    margin-bottom: 20px;
    line-height: 1.7;
    font-family: var(--ows-font-body);
}

.ows-video-player {
    background: #000;
    border-radius: var(--ows-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.ows-video-player video {
    display: block;
    user-select: none;
    -webkit-user-select: none;
}

.ows-video-notice {
    margin-top: 16px;
    padding: 12px 18px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--ows-radius-sm);
    font-size: 13px;
    color: #92400e;
    font-family: var(--ows-font-body);
}

/* ---------- Back Link ---------- */
.ows-back-link {
    margin-bottom: 24px;
}

.ows-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ows-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ows-burgundy);
    text-decoration: none;
    transition: var(--ows-transition);
    padding: 8px 16px;
    border-radius: var(--ows-radius-sm);
    background: var(--ows-pink-lighter);
}

.ows-back-link a:hover {
    background: var(--ows-pink-soft);
    color: var(--ows-burgundy-dark);
}

/* ============================================================
   MY SERVICES PAGE - Dashboard de 3 Servicios
   ============================================================ */

.ows-services-page {
    font-family: var(--ows-font-body);
}

.ows-services-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ows-pink-soft);
}

.ows-services-header h2 {
    font-family: var(--ows-font-display);
    font-size: 30px;
    color: var(--ows-gray-900);
    margin: 0 0 6px;
    font-weight: 700;
}

.ows-services-subtitle {
    color: var(--ows-gray-500);
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

/* Empty state */
.ows-empty {
    text-align: center;
    padding: 60px 30px;
    background: var(--ows-pink-lighter);
    border-radius: var(--ows-radius);
    border: 2px dashed var(--ows-pink-soft);
}

.ows-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ows-empty h3 {
    font-family: var(--ows-font-display);
    font-size: 22px;
    color: var(--ows-gray-900);
    margin-bottom: 8px;
}

.ows-empty p {
    color: var(--ows-gray-500);
    margin-bottom: 24px;
    font-size: 15px;
}

/* ---------- Services Grid ---------- */
.ows-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ---------- Service Card ---------- */
.ows-service-card {
    background: var(--ows-white);
    border-radius: var(--ows-radius);
    overflow: hidden;
    border: 1px solid var(--ows-gray-200);
    box-shadow: var(--ows-shadow);
    transition: var(--ows-transition);
    position: relative;
}

.ows-service-card:hover {
    box-shadow: var(--ows-shadow-hover);
}

.ows-service-card.ows-service-unlocked:hover {
    transform: translateY(-4px);
}

/* Card Image Area */
.ows-service-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ows-service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ows-service-unlocked:hover .ows-service-card-img img {
    transform: scale(1.05);
}

/* Locked card image grayscale */
.ows-service-locked .ows-service-card-img img {
    filter: grayscale(0.7) brightness(0.7);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.ows-service-locked:hover .ows-service-card-img img {
    filter: grayscale(0.5) brightness(0.75);
}

/* Placeholder (no image) */
.ows-service-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.ows-service-video .ows-service-card-placeholder {
    background: linear-gradient(135deg, var(--ows-pink-soft), #e8d5db);
}

.ows-service-consulta .ows-service-card-placeholder {
    background: linear-gradient(135deg, #e8d5db, var(--ows-pink-soft));
}

.ows-service-calendario .ows-service-card-placeholder {
    background: linear-gradient(135deg, var(--ows-pink-soft), #dfc8ce);
}

.ows-service-locked .ows-service-card-placeholder {
    filter: grayscale(0.5);
    opacity: 0.6;
}

/* Type Badge */
.ows-service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--ows-font-body);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
    letter-spacing: 0.3px;
}

.ows-badge-video {
    background: rgba(139, 69, 87, 0.85);
    color: #fff;
}

.ows-badge-consulta {
    background: rgba(139, 69, 87, 0.85);
    color: #fff;
}

.ows-badge-calendario {
    background: rgba(139, 69, 87, 0.85);
    color: #fff;
}

/* Lock Overlay */
.ows-service-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 23, 23, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--ows-transition);
}

.ows-service-locked:hover .ows-service-lock-overlay {
    background: rgba(23, 23, 23, 0.25);
}

.ows-lock-icon {
    font-size: 40px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    animation: ows-pulse 2s ease-in-out infinite;
}

@keyframes ows-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%      { transform: scale(1.1); opacity: 1; }
}

/* Active Status */
.ows-service-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--ows-font-body);
    z-index: 2;
}

.ows-status-active {
    background: rgba(22, 163, 74, 0.9);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card Body */
.ows-service-card-body {
    padding: 22px 20px 24px;
}

.ows-service-card-title {
    font-family: var(--ows-font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--ows-gray-900);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ows-service-locked .ows-service-card-title {
    color: var(--ows-gray-500);
}

.ows-service-card-desc {
    font-size: 14px;
    color: var(--ows-gray-500);
    line-height: 1.6;
    margin: 0 0 18px;
}

/* Price on locked cards */
.ows-service-price {
    font-family: var(--ows-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ows-burgundy);
    margin-bottom: 16px;
}

.ows-service-price del {
    color: var(--ows-gray-300);
    font-size: 16px;
    font-weight: 400;
}

.ows-service-price ins {
    text-decoration: none;
}

/* Service Buttons */
.ows-btn-service {
    width: 100%;
    text-align: center;
}

.ows-btn-active {
    background: var(--ows-burgundy);
}

.ows-btn-locked {
    background: var(--ows-white);
    color: var(--ows-burgundy) !important;
    border: 2px solid var(--ows-burgundy);
    box-shadow: none;
}

.ows-btn-locked:hover {
    background: var(--ows-burgundy);
    color: var(--ows-white) !important;
    box-shadow: 0 8px 24px rgba(139, 69, 87, 0.25);
}

/* Pending message */
.ows-service-pending {
    font-size: 13px;
    color: #b45309;
    padding: 10px 14px;
    background: #fef3c7;
    border-radius: var(--ows-radius-sm);
    border: 1px solid #fde68a;
    text-align: center;
    margin: 0;
}

/* ---------- Thank You Page - Multi-Service Summary ---------- */
.ows-thankyou-summary {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--ows-radius);
    border: 1px solid var(--ows-pink-soft);
    background: var(--ows-pink-lighter);
    margin: 24px 0;
    font-family: var(--ows-font-body);
}

.ows-thankyou-summary .ows-thankyou-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

.ows-thankyou-summary h3 {
    font-family: var(--ows-font-display);
    font-size: 24px;
    color: var(--ows-burgundy-dark);
    margin-bottom: 8px;
}

.ows-thankyou-summary > p {
    color: var(--ows-gray-500);
    font-size: 15px;
    margin-bottom: 24px;
}

.ows-thankyou-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ows-thankyou-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ows-white);
    border: 1px solid var(--ows-gray-200);
    border-radius: var(--ows-radius-sm);
    padding: 16px 18px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ows-thankyou-item-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.ows-thankyou-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ows-thankyou-item-info strong {
    font-size: 15px;
    color: var(--ows-gray-900);
}

.ows-thankyou-item-info .ows-btn-sm {
    align-self: flex-start;
}

.ows-thankyou-footer {
    padding-top: 20px;
    border-top: 1px solid var(--ows-pink-soft);
}

.ows-thankyou-footer p {
    color: var(--ows-gray-500);
    font-size: 14px;
    margin-bottom: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .ows-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ows-services-header h2 {
        font-size: 24px;
    }

    .ows-service-card-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .ows-service-card-body {
        padding: 16px 14px 18px;
    }

    .ows-service-card-title {
        font-size: 17px;
    }

    .ows-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* ============================================================
   CONSULTA FORM – Integrated on Product Page
   ============================================================ */

.ows-consulta-form {
    margin-top: 28px;
    padding: 0;
    font-family: var(--ows-font-body);
}

.ows-consulta-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 28px 24px;
    background: linear-gradient(135deg, var(--ows-pink-lighter) 0%, var(--ows-pink-soft) 100%);
    border-radius: var(--ows-radius);
    border: 1px solid var(--ows-pink-soft);
}

.ows-consulta-icon {
    font-size: 42px;
    margin-bottom: 10px;
    animation: ows-float 3s ease-in-out infinite;
}

@keyframes ows-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.ows-consulta-header h3 {
    font-family: var(--ows-font-display);
    font-size: 24px;
    color: var(--ows-gray-900);
    margin: 0 0 8px;
    font-weight: 700;
}

.ows-consulta-header p {
    color: var(--ows-gray-500);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Form Fields ---------- */
.ows-consulta-field {
    margin-bottom: 22px;
}

.ows-consulta-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--ows-gray-700);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.ows-required {
    color: #dc2626;
    font-weight: 700;
}

.ows-optional {
    color: var(--ows-gray-500);
    font-weight: 400;
    font-size: 12px;
}

.ows-consulta-field textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px 18px;
    border: 2px solid var(--ows-gray-200);
    border-radius: var(--ows-radius-sm);
    font-family: var(--ows-font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ows-gray-900);
    background: var(--ows-white);
    resize: vertical;
    transition: var(--ows-transition);
    box-sizing: border-box;
}

.ows-consulta-field textarea:focus {
    border-color: var(--ows-burgundy);
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 69, 87, 0.08);
}

.ows-consulta-field textarea::placeholder {
    color: var(--ows-gray-300);
    font-style: italic;
}

.ows-consulta-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--ows-gray-500);
    margin-top: 6px;
}

/* ---------- File Upload ---------- */
.ows-file-upload-area {
    border: 2px dashed var(--ows-gray-200);
    border-radius: var(--ows-radius-sm);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--ows-transition);
    background: var(--ows-gray-50);
    position: relative;
}

.ows-file-upload-area:hover {
    border-color: var(--ows-burgundy-light);
    background: var(--ows-pink-lighter);
}

.ows-file-upload-area.ows-drag-over {
    border-color: var(--ows-burgundy);
    background: var(--ows-pink-soft);
    transform: scale(1.01);
}

.ows-file-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ows-file-upload-area p {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--ows-gray-500);
}

.ows-file-browse {
    color: var(--ows-burgundy);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.ows-file-hint {
    font-size: 12px !important;
    color: var(--ows-gray-300) !important;
    margin-top: 4px !important;
}

.ows-file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File preview */
.ows-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--ows-pink-lighter);
    border: 1px solid var(--ows-pink-soft);
    border-radius: var(--ows-radius-sm);
    animation: ows-slide-down 0.3s ease;
}

.ows-file-preview-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ows-file-preview-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--ows-gray-900);
    word-break: break-all;
}

.ows-file-preview-size {
    font-size: 12px;
    color: var(--ows-gray-500);
    flex-shrink: 0;
}

.ows-file-remove {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ows-gray-500);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: var(--ows-transition);
    flex-shrink: 0;
    line-height: 1;
}

.ows-file-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ---------- Checkout (Price + Buy) ---------- */
.ows-consulta-checkout {
    margin-top: 24px;
    padding: 24px;
    background: var(--ows-white);
    border: 2px solid var(--ows-pink-soft);
    border-radius: var(--ows-radius);
    box-shadow: var(--ows-shadow);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(12px);
    transition: opacity 0.5s ease, max-height 0.5s ease, transform 0.5s ease, margin 0.5s ease, padding 0.5s ease;
    margin-top: 0;
    padding: 0 24px;
}

.ows-consulta-checkout.ows-visible {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
    margin-top: 24px;
    padding: 24px;
}

.ows-consulta-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ows-pink-soft);
}

.ows-consulta-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--ows-gray-700);
}

.ows-consulta-price {
    font-family: var(--ows-font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--ows-burgundy);
}

.ows-consulta-price del {
    color: var(--ows-gray-300);
    font-size: 18px;
    font-weight: 400;
}

.ows-consulta-price ins {
    text-decoration: none;
}

/* Buy button */
button.ows-btn.ows-btn-consulta-buy {
    width: 100% !important;
    padding: 16px 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background-color: var(--ows-burgundy) !important;
    color: #ffffff !important;
    border: none !important;
    letter-spacing: 0.4px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

button.ows-btn.ows-btn-consulta-buy:hover {
    background-color: var(--ows-burgundy-dark) !important;
    color: #ffffff !important;
}

.ows-btn-consulta-buy:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.ows-btn-text,
.ows-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Spinner */
.ows-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ows-spin 0.7s linear infinite;
}

@keyframes ows-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Messages ---------- */
.ows-consulta-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--ows-radius-sm);
    font-size: 14px;
    font-weight: 500;
    animation: ows-slide-down 0.3s ease;
}

.ows-consulta-msg-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.ows-consulta-msg-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@keyframes ows-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Consulta Form Responsive ---------- */
@media (max-width: 768px) {
    .ows-consulta-header {
        padding: 22px 18px;
    }

    .ows-consulta-header h3 {
        font-size: 20px;
    }

    .ows-consulta-price-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ows-consulta-form {
        margin-top: 20px;
    }

    .ows-consulta-field textarea {
        min-height: 120px;
        padding: 14px 14px;
        font-size: 14px;
    }

    .ows-file-upload-area {
        padding: 22px 14px;
    }

    .ows-consulta-checkout.ows-visible {
        padding: 18px 16px;
    }

    .ows-consulta-price {
        font-size: 22px;
    }
}


/* Hide price for specific service types (like Videocalls) */
body.ows-type-calendario .summary .price,
body.ows-type-calendario .entry-summary .price,
body.ows-type-calendario .elementor-widget-woocommerce-product-price {
    display: none !important;
}

/* ---------- WooCommerce Bookings Layout Fix (FORCE 2-COLUMN FLEX) ---------- */
/* We target the main product container and force it to be a flex row */
body.single-product div.product {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

/* Force Image to 45% width on the left */
body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .images,
body.single-product div.product .elementor-widget-woocommerce-product-images {
    width: 45% !important;
    max-width: 45% !important;
    flex: 0 0 45% !important;
    margin-right: 0 !important;
}

/* Force Summary (Calendar) to be centered */
body.single-product div.product .summary,
body.single-product div.product .entry-summary,
body.single-product .elementor-widget-woocommerce-product-add-to-cart,
body.single-product .elementor-column.elementor-col-50,
body.single-product .elementor-column.elementor-col-50 .elementor-widget-wrap {
    width: 53% !important;
    max-width: 53% !important;
    flex: 0 0 53% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    margin-left: 0 !important;
    padding-left: 20px !important;
    float: right !important; /* Back to right-float if flex fails */
}

/* Ensure the title and price also center */
body.single-product div.product .summary .product_title,
body.single-product div.product .summary .price {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Fix for the Booking Form - FORCE CENTERING */
.single-product div.product form.wc-bookings-booking-form,
.single-product div.product .wc-bookings-booking-form {
    width: 100% !important;
    max-width: 420px !important; 
    margin: 20px auto !important; /* Force margin auto */
    box-shadow: 0 4px 25px rgba(0,0,0,0.08) !important;
    text-align: left !important; /* Keep internal form text left-aligned */
    display: block !important;
    float: none !important;
    clear: both !important;
}
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
}

.wc-bookings-date-picker .ui-datepicker {
    font-size: 0.85em !important; /* Slightly smaller to fit better */
}

/* Ensure buttons and fields inside the small form look good */
.wc-bookings-booking-form-button {
    font-size: 16px !important;
    padding: 12px 20px !important;
}

/* Mobile: Stack them back to full width */
@media (max-width: 900px) {
    body.single-product div.product {
        display: block !important;
    }
    body.single-product div.product .images,
    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin: 0 0 20px 0 !important;
        padding-left: 0 !important;
    }
    
    body.single-product div.product form.wc-bookings-booking-form {
        max-width: 100% !important;
    }
}

