/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */
/**
 * The following styles get applied inside the editor only.
 *
 * Replace them with your own styles or remove the file completely.
 */

 .orphic-ui-persistent-banner-content {
	display: none;
	width: 100%;
	background-color: var(--orphic-wp-block-plugin-color-background);
	border: 1px solid var(--orphic-wp-block-plugin-color-border);
	margin: 1rem 0;
  border-radius: 6px;
  max-width: 400px;
  box-shadow: 3px 4px 10px 0px rgba(0, 0, 0, 0.12);
	
	.orphic-ui-persistent-banner-wrapper {
		display: flex;
		flex-direction: column;
    width: 100%;
		padding: 1rem 1rem;
		max-width: 1200px;
		margin: 0 auto;
    gap: 1rem;
		
		.orphic-ui-persistent-banner-text {
			flex: 1;
			
			p {
				margin: 0;
				font-size: 0.9rem;

        @media (max-width: 768px) {
          font-size: 0.85rem;
        }
			}
		}
		
		.orphic-ui-persistent-banner-buttons {
			display: flex;
      justify-content: flex-start;
			gap: 0.5rem;
			
			button, a {
				padding: 0.5rem 1rem;
				border-radius: 4px;
				border: none;
				cursor: pointer;
				font-weight: 500;
        font-size: 0.9rem;
        text-decoration: none;

        @media (max-width: 768px) {
          padding: 0.4rem 0.8rem;
          font-size: 0.8rem;
        }
				
				&.orphic-ui-persistent-banner-agree {
					background-color: var(--orphic-ui-persistent-banner-primary-bg, #007cba);
					color: white;
				}
				
				&.orphic-ui-persistent-banner-close {
					background-color: var(--orphic-wp-block-plugin-color-bg-error, #ffbdad);
					border: 1px solid #ddd;
          color: var(--orphic-wp-block-plugin-color-text-error, #de350b);
				}
			}

      @media (max-width: 768px) {
        width: 100%;
      }
		}

    @media (max-width: 768px) {
      padding: 0.8rem;
      gap: 0.8rem;
    }
	}

  @media (max-width: 768px) {
    max-width: 400px;
    min-width: 0;
    width: calc(100% - 40px);
    margin: 0.5rem 0;
  }
}

.orphic-ui-persistent-banner-content.customColor {
  background-color: var(--orphic-ui-persistent-banner-background-color);
  color: var(--orphic-ui-persistent-banner-text-color);
  border-color: var(--orphic-ui-persistent-banner-border-color);
  
  .orphic-ui-persistent-banner-wrapper {
    .orphic-ui-persistent-banner-buttons {
      button.orphic-ui-persistent-banner-agree {
        background-color: var(--orphic-ui-persistent-banner-primary-bg);
        color: var(--orphic-ui-persistent-banner-primary-color);
      }

      button.orphic-ui-persistent-banner-close {
        background-color: var(--orphic-ui-persistent-banner-error-bg);
        color: var(--orphic-ui-persistent-banner-error-text);
      }
    }
  }
}
